I'm writing a website using asp.net and I'm using VB if i want to press a button which loads another page how can i do that ?

Recommended Answers

All 5 Replies

  <asp:Menu ID="Menu1" runat="server">
                <asp:MenuItem NavigateUrl="~/WebForm2.aspx" Text="Home" ToolTip="Home" Value="Home"></asp:MenuItem>
                <asp:MenuItem NavigateUrl="https://www.google.be/" Text="google" ToolTip="google" Value="google"></asp:MenuItem>

I've tried it and it worked ,thank you =D

vote then please and make the article solved.

another Question if i wanna use button instead of menu how can i do it ?

i found out how by using Response.Redirect(url)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.