By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,435 Members | 1,967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,435 IT Pros & Developers. It's quick & easy.

Open Another webform without closing the current webform ?

P: n/a
How can I open another WebForm in ASP.Net / VS 2005 without closing the
Current Webform.

I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1
but it close the current web form and opened the form2, and when I click on
the button on form2 which had Server.Transfer("Form1.Aspx"), the form1
initialized and all the values of form1 controls set to blank, any idea
please ?

My Form1 has some textboxes and a search Button. The Search Button is used
to open another form and search for particular Item Code, and then click on
that Item Code and come back to form1 without closing the form1.

Any idea please ?

Best Regards,

Luqman


Apr 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Luqman" <pe*******@cyber.net.pkwrote in message
news:O8**************@TK2MSFTNGP03.phx.gbl...
How can I open another WebForm in ASP.Net / VS 2005 without closing the
Current Webform.
For this you will need to open a second window client-side using javascript:
http://www.google.co.uk/search?sourc...+window%2eopen

Or, if you can be certain that all your users will be using Microsoft
Internet Explorer, you could use window.showModalDialog:
http://www.google.co.uk/search?hl=en...alDialog&meta=

You can refer to the controls on the first window by using the window.opener
object in the second window:
http://www.google.co.uk/search?hl=en...w.opener&meta=
Apr 9 '07 #2

P: n/a
The JavaScript window.open method is a common solution.
Here's more info:
http://SteveOrr.net/articles/ClientSideSuite.aspx
http://msdn.microsoft.com/library/de...ods/open_0.asp

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Luqman" <pe*******@cyber.net.pkwrote in message
news:O8**************@TK2MSFTNGP03.phx.gbl...
How can I open another WebForm in ASP.Net / VS 2005 without closing the
Current Webform.

I tried using Server.Transfer("Form2.Aspx",True) on Button_Click of Form1
but it close the current web form and opened the form2, and when I click
on the button on form2 which had Server.Transfer("Form1.Aspx"), the form1
initialized and all the values of form1 controls set to blank, any idea
please ?

My Form1 has some textboxes and a search Button. The Search Button is used
to open another form and search for particular Item Code, and then click
on that Item Code and come back to form1 without closing the form1.

Any idea please ?

Best Regards,

Luqman

Apr 11 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.