Posted on: 3/11/2011 11:40:45 AM | Views : 281

Hi All
 
I have setup some websites using forms authentication however I am now working on a intranet project that only our internal users will need to access and only from in side the building. SO I thought hey I can use this fancy windows authentication. However I do need to setup some roles and access rules and I need to who is logged in. Normally I would do this.
LabelWhoAmI.Text = User.Identity.Name;
But it doesn't like that tells me User is not in the current context. Not sure what to use to find out who the user is so I can program against that.
What do I use? or should I just setup another forms auth database. I just hate to create and maintaine another one. I tried to setup to use AD but I couldn't get that working.
 
Thanks
CapJLP
...

Go to the complete details ...