Logged User
-
I write a asp.net program and need to know which user is now logged in clients . for example if user "A" is logged button B must enabled And if User "B" is logged button B must disabled in my webform . Can anyone help me ? Regards' Amir jalaly
-
I write a asp.net program and need to know which user is now logged in clients . for example if user "A" is logged button B must enabled And if User "B" is logged button B must disabled in my webform . Can anyone help me ? Regards' Amir jalaly
Each Page has got a User attached to it, so you might want to go writing something like in your Page_Load Eventhandler:
if(User.Identity.IsAuthenticated && User.Identity.Name == "Pete") {
Button1.Enabled = true;
}What authentication model are you using?
I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]