473,480 Members | 1,850 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

passing info between browser windows

Say I have main.aspx, that opens dialog.aspx in a browser dialog type
window. User clicks "search" and a list is populated in dialog.aspx. I
would like to be able to have the user select a few items from a list box,
then be able to click an "ok" button and have the selected items passed back
to main.aspx and populated there.

Is there any ASP.NET server side code that would make this easier than
handling the logic with javascript, window.opener, etc?

Thanks in advance!

Derrick
Nov 19 '05 #1
1 905
Derrick,

If you wish, you can do it on server-side. The steps involved are:

main.aspx client calls showModalDialog ('dialog.aspx', ...);
dialog.aspx server gets the selected items in a postback.
dialog.aspx server writes the selected items in a session variable.
dialog.aspx server communicates to dialog.aspx client a request to close the
dialog window.
dialog.aspx client closes the window;
main.aspx client main.aspx client.
main.aspx server gets the selected items from the session variable and
populates the form

Having said this, I should add that a client-side solution looks to me as a
better option.

Eliyahu

"Derrick" <de*********@excite.com> wrote in message
news:OW*************@TK2MSFTNGP12.phx.gbl...
Say I have main.aspx, that opens dialog.aspx in a browser dialog type
window. User clicks "search" and a list is populated in dialog.aspx. I
would like to be able to have the user select a few items from a list box,
then be able to click an "ok" button and have the selected items passed back to main.aspx and populated there.

Is there any ASP.NET server side code that would make this easier than
handling the logic with javascript, window.opener, etc?

Thanks in advance!

Derrick

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
3114
by: Antoni | last post by:
Hello, I wondered if anyone could offer some guidance over my php script. I was hoping the example would allow the user to click the submit buttons and the item number increment. And when the...
2
1423
by: Aamir Ghanchi | last post by:
Hi, I dont have an AOL browser. If someone has the most recent version, Can they please give me the following info alert("navigator.appName="+navigator.appName+...
29
4954
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
8
4393
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
6
3239
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
7
2595
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
3
3091
by: Q. John Chen | last post by:
Is there an easy way to get following info of the client machine? machine name OS version IE or Netscape, and there version etc. Lan, Broadbank, or modem connection? Speed?
8
1534
by: Robert | last post by:
I am creating a small help browser. It is pretty much finished except I cannot find how to pass a file to it (i.e. browser.exe index.html, or any html file, and the html file opens in the browser)...
3
1838
by: =?Utf-8?B?QW5keQ==?= | last post by:
Hi, I'm having issues with what I'm *sure* is a simple problem. Basically having a problem passing a cookie between two sites. On Site A you sign in, and create a cookie with the users ID in it...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7044
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7084
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6739
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6929
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4779
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
181
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.