473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Open Another webform without closing the current webform ?

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
2 2946
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Peter Brown | last post by:
Hello! I am stepping through a text book that sets up different websites. The one I am testing is user registration. I set up the scripts and this is what I observe: Login (verifying...
0
by: eddie wang | last post by:
Excel open automatically without giving a dialog box option to Open/Save/Cancel using filesys.createTextFile. How to pop up the dialog box option to Open/Save/Cancel? Thanks.
6
by: MAB71 | last post by:
There should be a way to copy an access database ( .mdb file ) without closing connections to it. Unfortunately the FileCopy statement in VB gives an error if users are connected to the db. But I...
5
by: nick_faye | last post by:
Hi, I am still a newbie to VB and using MS Access 2000. I am currently trying to provide a preview of reports before printing them. My program is simple: AC.DoCmd.OpenReport "MyReport",...
2
by: Ivan Lam | last post by:
Hi all, Thanks for reading my post!!! I am facing a problem that I cannot redirect StandartOutput and StandardInput at the same time without closing the executive. Actually, I have a...
2
by: lakshmikandhan | last post by:
Hi All, Can anyone tell me how to handle a event while we are closing a webform in asp.net??? I have to perform some server side action while we are closing a webform.So plz give me some idea...
14
by: cage | last post by:
hello can i write a eof to a file descriptor without closing it? like: fd.write(EOF) or something grts, ruben
1
by: sandeepk84 | last post by:
hi all... is there any way to open a new aspx page from another without closing the existing one? means, i have some controls in the first page and i need them to b there after doing some...
8
by: Ron | last post by:
I am building a dynamic image loading class. I have a list of properties that have associated images in a specified directory. The problem they are multiple formats which are not known at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.