Login Control,Login status problem
-
Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder
One person's data is another person's program. --J.Walia
-
Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder
One person's data is another person's program. --J.Walia
Have you read the documentation ? Why is the login control on your master page at all ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder
One person's data is another person's program. --J.Walia
J walia wrote:
1. Now my problem is to check on menu page is the user logined in or not??
Use Authentication Section in Web.Config. User will only be able to access menu.aspx if he/she is logged in.
J walia wrote:
2. if yes how to logout the user.
Use LoginStatus control, it shows a link which displays "Login" if user is not loggedin and "Logout" if user is loggedin. If used click on "Logout" he will be logged out.
J walia wrote:
3. how to give user access ??
I am not clear, what you want here.
J walia wrote:
4. how to hide login view control on master page on access.aspx page
After successful login, make it invisible and make it visible after logout.
-
Have you read the documentation ? Why is the login control on your master page at all ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
CG is right, make a separate page for Login Control and definitely read documentation. :)
-
Have you read the documentation ? Why is the login control on your master page at all ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
i said i put login view on master not login control.... i hope u understand this time
One person's data is another person's program. --J.Walia
OK - so, you hide it by setting it's visibility. I'm not sure what the issue is.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
OK - so, you hide it by setting it's visibility. I'm not sure what the issue is.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
how we can hide a control of master page in run time.
One person's data is another person's program. --J.Walia
Use .Master property. You can get MasterPage from this property and then use FindControl() method to cast Login View. Then you can make the control invisible.