ASP.Net applications run in the security context of a user. The verify the identity of that user for a portion of your application:
- Create a new text file within the same folder as the pages you are interested in
- Add the following code:
<%@ Page Language="VB" %> <%Response.Write( _ System.Security.Principal.WindowsIdentity.GetCurrent( _ ).Name)%>
- Change the file extension to “.aspx”.
- View the new page just as you would any other page on the web site.
http://pressposts.com/Life/ASP-Net-Security-Context-User-Name/
Submited post on PressPosts.com – “ASP.Net Security Context User Name”
Most of the time I don’t post on blogs, but I would like to say that this post really forced me to do so!
Thanks for sharing such a good idea, article is
good, thats why i have read it fully