vb.net help

windows

Guest
I am new to vb.net..

I have a form with a button on it....just by click that button i wan to move to form2...can any one help me with this

its very simple i know but don't know how do it

:oIs this asp.net or a windows app?this is in vb.net...

click of a button i want to go from from1 to form2

help pls with codeRight but is it a web-based project or one that you'll be running on windows? I ask because the syntax will be different in both cases.

If it's web-based, put this in the button's click event.

Reponse.Redirect("URL to go to")Response.write is in asp.net...

In vb.net
<asp:button .... onclick=""> so how to call another form in the onclick eventYou probably would want to look at using multiple forms on one page instead of multiple pages. Just add the different forms to a panel control and make the visible=true for one and visible=false for the other.

VB.NET
Sub Submit_Click(sender As Object, e As EventArgs)
.....Code to process form.....
Response.Redirect("form2.aspx")
End Sub

C# Code
public void Submit_Click(Object sender, EventArgs e)
{
....Code to process form....
Response.Redirect("form2.aspx");
}

<asp:button id="btnSubmit" onClick="Submit_Click" runat="server" />
 
Back
Top