Ok, i have done a bunch of asp as well as asp.net right when it came out. A friend is starting a non profit organization and he wants me to put together a site for him. I figured i would kill 2 birds with one stone and look to freshen up my skills on the latest that the web has to offer in asp.net, web 2.0, etc.
The site requirements...
I normally in my projects use such these code:
If user.IsInRole("Admin") Then
deleteButton.Visible = True
else
deleteButton.Visible = False
But I want to control roles, which can see this button in database.
For this purpose how should database design be?
Thanks.
...
There are a few questions on SO already regarding LINQ pivots and while a couple of them outline my exact problem, I can't successfully translate them to a working solution. I feel that this is mostly due to a join in my tables.
So for the benefit of all the LINQ junkies out there who love a problem, here's another puzzle for you to wo...
Parser Error Message: The entry 'SiteSqlServer' has already been added.
Source Error:
Line 23: providerName="System.Data.SqlClient"/> -->
Line 24: < ! -- Connection String for SQL Server 2000/2005 -->
Line 25: <add name="SiteSqlServer" connectionString="Server=(local);
abase=DotNetNuke2; uid=nukeuser;pwd=dotnetnuke;" providerN...
Hi there - I'm working with asp.net (I'm a designer) and at some point during debugging it'll throw me and I'll get to an Exception objErr in the code - and when I hover it says "file not found". I assume it's an image but I've been searching and can't find anyway to pinpoint which file is missing. I hope this is enough information - if ...
Hi, T have used checkbox column in gridview. On click of a linkbutton, it should be checked that checkboxes in gridview are checked or not. If none check box is checked then it should display alert("Check at leat one check box").
...
Hi,I have used checkbox column in gridview. I want to check status of that checkboxes. On click of a button it should be checked that if any checkbox is checked or not. If none checkbox is checked then it should display alert message that check checkbox first. I need it urgently. Can anyone help me please? Thanks in advance.
...
I am trying to decide whether to learn ASP.NET MVC (or to spend the time learning another technology that interests me). I know that it is an elegant framework, but I am trying to assess my future job opportunities if I invest in this skill. In your estimation, how long is it going to be before demand for ASP.NET MVC developers rivals th...
I am using ASP.NET membership for the authentication of my web app. This worked great for me. I now have to now implement password expiration.
If the password has expired the user should be redirected to changepassword screen and should not be allowed access any other part of the application without changing the password.
There are man...
for code inspiration.
...
Hi all,
Where can you get information on the ASP.NET State Service e.g. how it works, performance, behaviour characteristics etc.
Have looked on internet but cant find in depth information or an article dedicated to the subject.
Thanks
...
Hi all,
Where can you get information on the ASP.NET State Service e.g. how it works, performance, behaviour characteristics etc.
Have looked on internet but cant find in depth information or an article dedicated to the subject.
Thanks
...
Is there any built-in utility or helper to parse HttpContext.Current.User.Identity.Name to get separately domain name if exists and user?
Or is there any other class to do so?
I udnerstand that it's very easy to call String.Split("\") but just intresting
...
I have an ASP.NET website deployed on IIS 6. I have several folders in my app containing handlers like log.ashx, default.ashx and so on.
I have default document configured in IIS, so that I can type www.mydomain.com/tools in the browser, and I will get the /tools/default.ashx.
IIS gives me 404 all the time, which is my problem. I also ...
Is it possible to return an XElement from a webservice (in C#/asp.net)?
Try a simple web service that returns an XElement:
[WebMethod]
public XElement DoItXElement()
{
XElement xe = new XElement("hello",
new XElement("message", "Hello World")
);
return xe;
}
This compiles fine but if you try and run it you get
Cannot...
If you visit this page in Internet explorer, and choose a value from the "Current Media Releases" dropdown on the top right, eventually IE will try to redirect you to an ugly url containing this string:
__EVENTTARGET=selArchives&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=
The page should only be updating the selArchives Query string val...
Hi There,
I'm starting to build a community website from the site up and my web framework will be Asp.net and Mysql.
I want to start planning some scalability into the infrastructure early because I'm anticipating high traffic when the site goes live.
Are there any case studies which you recommend reading where asp.net or mysql has be...
Ok time to show my complete lack of knowladge for all things web forms but here goes. I am extending the Panel control and OnPreRender sticking some additional controls inside of it (lets just say 1 textbox for simplicity). From here I am just letting the Panels Render method do its thing.
The issue I am having is that obviously every ...
I am trying to write a textbox that will search on 5 DB columns and will return every result of a given search, ex. "Red" would return: red ball, Red Williams, etc. Any examples or similar things people have tried. My example code for the search.
Thanks.
ItemMasterDataContext db = new ItemMasterDataContext();
string s = tx...
Are there any performance benefits to me not using the gridview in asp.net for simple tables querying from a stored procedure and instead writing the html in server code myself. I'm sure my code would certainly be more concise in output.
...