Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Open Another webform without closing the current webform ?

Reply
Thread Tools

Open Another webform without closing the current webform ?

 
 
Luqman
Guest
Posts: n/a
 
      04-09-2007
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






 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      04-09-2007
"Luqman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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=


 
Reply With Quote
 
 
 
 
Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
Guest
Posts: n/a
 
      04-11-2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create an instance of one webform on another webform Paul ASP .Net 6 11-26-2009 04:45 PM
Closing popup window when closing parent window? =?Utf-8?B?Vk1J?= ASP .Net 3 02-15-2007 08:29 AM
Using one webform to set a value on another webform =?Utf-8?B?bXN1aw==?= ASP .Net 1 07-12-2006 07:23 PM
Closing the doors 15 minutes before closing. doofus Computer Support 12 06-11-2005 08:20 AM
Closing child window WITHOUT closing parent thomas Javascript 0 10-23-2003 04:10 PM



Advertisments