thanks for reply.....if i use HttpContext.User then it gives the current user who logged in.....with this i can fetch the role the from the database.....is this what u intented to tell me in ur reply.....right?
u also told ASP.NET authenticates the user, can u tell me how it authenticates...do i need to write any code for this?..please me soon...thanks...
The HttpContext.User gives you the current user who is logged in.
ASP.NET is the technology that serves your web applications. You set how ASP.NET authenticates the users in your web.config....in your case all you have to do is set it to be Windows Authentication.
When ASP.NET Authenticates the user it sets a Principal object that represents the user and stores it in the HttpContext.User.
You should really check out this article:
Explained: Windows Authentication in ASP.NET 2.0
The article describes how everything works in depth. So you should be able to understand the process that happens during this type of authentication and also how to set up your application to use it.
-Frinny