• 0

[VB, ASP.NET] Open Web Form on button click


Question

I have just started ASP.NET 2.0 and VB and just wondered how you create links between pages when a button is clicked. I have a button on the page entitled 'index' and I want the site to go to the page 'links' when this is clicked. Any ideas? I am using Visual Web Developer 2008.

Does anyone recommend any book for people starting out with ASP.NET and VB.NET?

Thanks

3 answers to this question

Recommended Posts

  • 0

When you add a button click event, you can do a Response.Redirect:

<asp:Button ID="myButton" Text="My Button" OnClick="myButton_Click" runat="server" />

Public Sub myButton_Click(sender As Object, e As EventArgs)
	 Response.Redirect("links.aspx")
End Sub

You should look at getting something like this http://www.amazon.co.uk/Beginning-ASP-NET-...3313&sr=1-1

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.