Open Page2 from Page1 in Web Developer

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2008
Posts: 122
Reputation: Liszt is an unknown quantity at this point 
Solved Threads: 6
Liszt Liszt is offline Offline
Junior Poster

Open Page2 from Page1 in Web Developer

 
0
  #1
Jan 9th, 2009
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 ?
  1. Form2 form2 = new Form2();
  2. form2.Show();
Last edited by Liszt; Jan 9th, 2009 at 5:06 pm.
Attached Thumbnails
Page1.JPG  
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 437
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

Re: Open Page2 from Page1 in Web Developer

 
0
  #2
Jan 9th, 2009
Originally Posted by Liszt View Post
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 ?
  1. Form2 form2 = new Form2();
  2. form2.Show();
Im just curious as to when you would do this on a web page ?

What your looking to do is

  1. 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'
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 122
Reputation: Liszt is an unknown quantity at this point 
Solved Threads: 6
Liszt Liszt is offline Offline
Junior Poster

Re: Open Page2 from Page1 in Web Developer

 
0
  #3
Jan 9th, 2009
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!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC