Protected Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Server.Transfer("Page2.aspx", True)
End Sub
This is a example of how to redirect a user to another page when a button
This code works. The more common code however is response.redirect("/somepage.aspx"). You may want to update this post for future reference. You never know.. you might be doing asp.net work in a few months.
This code works. The more common code however is response.redirect("/somepage.aspx"). You may want to update this post for future reference. You never know.. you might be doing asp.net work in a few months.
ReplyDelete