I am using "Microsoft Visual Web Developer 2008 Express Edition".

I have created a First page with a button and 2 textBoxes( see attached file)

In my project I have added a new item/Page 2 to this project.

What I now is trying to do or wonder how it is possible, is how to open this Page2 when pressing this button.

Normally when you do this in C# you would have done something like this to open a new Form. Is the solution something simular to this ?

Form2 form2 = new Form2();
form2.Show();
Attachments Page1.JPG 38.4 KB

Normally when you do this in C# you would have done something like this to open a new Form. Is the solution something simular to this ?

Form2 form2 = new Form2();
form2.Show();

Im just curious as to when you would do this on a web page ?

What your looking to do is

Response.Redirect = "http://www.google.com/";

having not used visual web developer i am unsure how you would go about it, but you would not want to post back to achieve this when it can be done in standard HTML unless you needed to perform some validation.

If these are ASP controls which i assume they are, a property is available to you which you can set on each of the buttons along the lines of 'PostBackURL'

Yes that was the way I wanted to do.
It did work fine using the property: 'PostBackURL' for the button
and put the address there.
Thank You!

This question has already been answered. Start a new discussion instead.