Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources


Forums»C# .NET »



using web.config to specify specific users

The empid is declared in the Page_Load event. We use cookies to store the empid for each employee. Then I use Request.Cookies["EmpId"] to get the value of the cookie for the logged in user. Example:

protected string empid = "";
private void Page_Load(object sender, System.EventArgs e)
{
empid = Request.Cookies["EmpId"].Value;
}

Hopefully this answers your question.

Nathan
posted by:Nathan  on 5/8/2007 12:00:00 AM
© 2008 dotnetwatch.com -- Privacy policy

Website Design & Internet Marketing by Shivam