Windows Authentication Impersonate
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
After logon in the Master page, am showing tree node using the following. if (HttpContext.Current.User.IsInRole("abc")) { Show tree node } This works fine. I have a Impersonate.aspx page where I make the user enter the user id on the textbox and associate it with Global.asax.cs I have this. public static string CurrentUser { get { if (_currUser == string.Empty) return SignedOnUser; else return _currUser; } set { _currUser = value; } } I have to get the CurrentUser value when I use HttpContext.Current.User.IsInRole() Am I taking the right approach? Please help.
Thanks