Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am doing web application in which it has 1 login page and 4 different pages named A,B,C,D respectively. in all 4 pages it has add button by which user click on any particular button then it should first redirect to login page that's working fine but when it redirects to login page when user enters valid username and password it should redirect to page whichever user has clicked on page(A,B,C,D).
How to do code for that.
Plz help.
Thanks Advance.
Posted

Use Forms Authentication

and try this
FormsAuthentication.RedirectFromLoginPage(Your string, false);
 
Share this answer
 
Comments
chetanp322 6-Apr-11 8:30am    
plz tell me where to use it and how to use
Mahendra.p25 6-Apr-11 8:36am    
try this link
http://www.15seconds.com/issue/020220.htm
if(struserclicked == 'A') 
{
  Response.Redirect("A.aspx");
}
else if(struserclicked == "B")
{
  Response.Redirect("B.aspx&");
}
else if(struserclicked == "C")
{
  Response.Redirect("C.aspx");
}
else if(struserclicked == "D")
{
  Response.Redirect("D.aspx");
}
 
Share this answer
 
v2

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