Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
protected void Button1_Click(object sender, EventArgs e)
       {
           Response.Redirect("~student.aspx");
       }
Posted
Comments
Sanjeev Alamuri 5-Nov-12 4:58am    
correct one is:
Response.Redirect("~/student.aspx");

C#
Response.Redirect("~/student.aspx");
 
Share this answer
 
Response.Redirect("arg1",arg2);
arg1=redirect url
arg2=(opctional)(bool value Either true or false)
try below line
Response.Redirect("~/student.aspx");
Response.Redirect("~/student.aspx",boolvalue(true Or false));
 
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