Not getting name from HttpContext.Current.User.Identity.Name
-
Hi all, I m using .net 1.1. I m creating FormsAuthenticationTicket at login page. I have done Application_AuthenticateRequest() in Global.asax. But I cant get userName at one page , which I m getting by following code
lblStaffName.Text = HttpContext.Current.User.Identity.Name;
But I get this value blank("").......:( Please tell me where I m wrong.... Thank you.....This time will also pass.....Remember this in bad days of Life. Keep Smiling :)
-
Hi all, I m using .net 1.1. I m creating FormsAuthenticationTicket at login page. I have done Application_AuthenticateRequest() in Global.asax. But I cant get userName at one page , which I m getting by following code
lblStaffName.Text = HttpContext.Current.User.Identity.Name;
But I get this value blank("").......:( Please tell me where I m wrong.... Thank you.....This time will also pass.....Remember this in bad days of Life. Keep Smiling :)
V H Shah wrote:
But I get this value blank("").......
I think in user system there are no users....for that reason it is showing blank.... one thing tell me is your system having any users?
Regards, Sandeep Kumar.V