Click here to Skip to main content
15,915,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,
I have a navbar in which Member,Employee ,Login Present as the nav pills .When I click on member or employee without logging in the it ll redirect me to the logIn page.But my requirement is when I clicked in member ,it ll redirecte me to login.aspx and then after log in it ll send redirect me to Member.aspx page.How can I do?
Posted

1 solution

You can get it done by two ways

1) You can send the URL you want to redirect as get parameter to login function.

eg: login.aspx?refurl=member.aspx

2)You can use cookie to save the redirect url and use when logged in.
 
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