| | |
Open Page2 from Page1 in Web Developer
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
![]() |
•
•
Join Date: Oct 2008
Posts: 122
Reputation:
Solved Threads: 6
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 ?
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 ?
ASP.NET Syntax (Toggle Plain Text)
Form2 form2 = new Form2(); form2.Show();
Last edited by Liszt; Jan 9th, 2009 at 5:06 pm.
•
•
•
•
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 ?
ASP.NET Syntax (Toggle Plain Text)
Form2 form2 = new Form2(); form2.Show();
What your looking to do is
ASP.NET Syntax (Toggle Plain Text)
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
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Loop Madness!
- Next Thread: BeginnerQuestions to create WebSite
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax alltypeofvideos asp asp.net bc30451 bottomasp.net browser businesslogiclayer c# c#gridviewcolumn checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier css dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist development dgv dropdownlist dropdownmenu dynamic dynamically edit fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox menu microsoft mouse mssql multistepregistration nameisnotdeclared news objects opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail rotatepage schoolproject security serializesmo.table silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking unauthorized validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





