hi,
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

  <asp:Menu ID="Menu1" runat="server">
            <Items>
                <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>
            </Items>
        </asp:Menu>
Jump to Post

All 5 Replies

  <asp:Menu ID="Menu1" runat="server">
            <Items>
                <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>
            </Items>
        </asp:Menu>

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

vote then please and make the article solved.

hi,
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 learning and sharing knowledge.