How do I redirect to another page with ASP.NET?
Add the button onclick event handler.
In the event handler put:
Response.Redirect("YOUR_NEW_PAGE");
Response.Redirect or Server.Transfer
Slightly more complicated, and probably not what you need a cross page post
Not quite sure from your question whether you're after ASP VB or C#...so...
// C#
private void Button1_Click(object sender, System.EventArgs e){ Server.Transfer("Webform2.aspx");}
' Visual Basic
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Server.Transfer("Webform2.aspx")End Sub
For more information, I direct you to:
http://msdn.microsoft.com/en-us/library/540y83hx%28VS.71%29.aspx