954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Open Page2 from Page1 in Web Developer

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.4KB
Liszt
Junior Poster
122 posts since Oct 2008
Reputation Points: 33
Solved Threads: 6
 

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'

Fungus1487
Posting Pro in Training
459 posts since Apr 2007
Reputation Points: 66
Solved Threads: 56
 

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!

Liszt
Junior Poster
122 posts since Oct 2008
Reputation Points: 33
Solved Threads: 6
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You