PC Review


Reply
Thread Tools Rate Thread

passing info between browser windows

 
 
Derrick
Guest
Posts: n/a
 
      21st Jun 2005
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


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      21st Jun 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Passing Info Between Macros =?Utf-8?B?Um9i?= Microsoft Excel Programming 2 26th Aug 2006 01:48 AM
Q: Passing information between browser windows? Usenet User Microsoft ASP .NET 2 17th Apr 2006 04:45 PM
Is there a difference between passing "" and passing Nothing to a Windows API ? academic Microsoft VB .NET 61 14th Feb 2006 11:36 AM
Dealing with user controls and passing info between them ben Microsoft VB .NET 0 1st Nov 2004 04:35 PM
Passing info between databases Patrick Microsoft Access 5 24th Feb 2004 08:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.