Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create a simple login in masterpage.I want to remain on same page when login is occurred.
how to remain on same page after login in asp.net?
I use session but I dont want to use authentication.
I dont know redirect to which page(which address)?
Posted
Updated 10-Dec-13 7:27am
v2
Comments
ZurdoDev 10-Dec-13 14:10pm    
If you use FormsAuthentication you can do FormsAuthentication.RedirectFromLoginUrl()

1 solution

Show us some code so we can see what you are doing.

Anyway, once validated I suppose you could simply Server.Execute("thispage"). You would need some method to detect that the user is now logged in so as to display specific content (perhaps something in the PreInit event to do that (there are other ways to do this as well).

Are you simply trying to hide the login controls once validated?

Unless you have an overriding need to develop custom authentication why not just use what MS provides and then do as RyanDev suggests?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900