Visual Studio 2003

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have several web forms with buttons on them. I am new to Visual Studio and
trying to write some code behind a button in C# (by double clicking the
button) so that when the button is clicked, it will close that web form and
open another. For example, when clicking a button on a web form called
"Page1" a new web page "Page2" will open. I am trying to do it in C#. Any
help would be greatly appreciated. Thanks.
 
Hi Bill,

In the event handler for the button on Form1, use Response.Redirect
"Form2Url" to redirect to the subsequent page.

HTH,

Adam
 
Back
Top