Submitting to another form
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
How do you submit to another form using the submit button??
Ty
-
How do you submit to another form using the submit button??
Ty
-
Add a PostBackUrl property to your button: PostBackUrl="~/Page2.aspx" Then to get the value on your second page: Dim t As TextBox = CType(PreviousPage.FindControl("Textbox1"), TextBox) Label1.Text = t.Text The above only works in .NET 2.0
But please keep in mind postbackurl post back main page again. So if you need to transfer values use Server.transfer and get the values thru properties. In general, if it is straight forwrd transfer tehn user PostBackUrl or response.redirect. Amit