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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top