473,416 Members | 1,727 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,416 software developers and data experts.

Posting data back to a modal dialog window

Hi all,

I have a modal dialog window from which a user selects a few rows from a
datagrid and then clicks on an image button. My question is two-fold:

1. How do I post data back to the same dialog window?

2. The dialog window in question was, in turn, created from a dialog window.
I need to post data back to that one too (that which the user selected in
the top-most dialog window). How do I send data back to this window?

Regards
John.
Nov 17 '05 #1
2 7068
Hi John,
Posting back in a modal dialog box has not worked for me in the past.

I woud like to see if it works for you?

Cheers,
Angus

"John" <a@b.com> wrote in message
news:OK*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I have a modal dialog window from which a user selects a few rows from a
datagrid and then clicks on an image button. My question is two-fold:

1. How do I post data back to the same dialog window?

2. The dialog window in question was, in turn, created from a dialog window. I need to post data back to that one too (that which the user selected in
the top-most dialog window). How do I send data back to this window?

Regards
John.

Nov 17 '05 #2
Hi

2 ways to post to a dialog

1 Place a iframe/frameset in the dialog and host the page there
2 <base target="_self">

Returning value to the opener:
( Iframe )
parent.window.returnValue = theValue;
parent.window.close();

( Frameset )
top.returnValue = theValue;
top.close();

(<base target="_self"> )
window.returnValue = theValue;
window.close();

Getting value in the opener
var res = showModalDialog(........);
if(typeof(res) != "undefined") alert(res);

If returning more than 1 value you can use comma delimited.....

More info
http://msdn.microsoft.com/library/de...ence_entry.asp
http://msdn.microsoft.com/library/de...oriJScript.asp

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"John" <a@b.com> wrote in message
news:OK*************@TK2MSFTNGP12.phx.gbl...
Hi all,

I have a modal dialog window from which a user selects a few rows from a
datagrid and then clicks on an image button. My question is two-fold:

1. How do I post data back to the same dialog window?

2. The dialog window in question was, in turn, created from a dialog window. I need to post data back to that one too (that which the user selected in
the top-most dialog window). How do I send data back to this window?

Regards
John.

Nov 17 '05 #3

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

Similar topics

1
by: Matt | last post by:
I want to know how to submit the form data to a modal dialog window? The following is page1.asp, and when the user clicks submit button, it will post the form data to page2.asp by opening a new...
0
by: Nonoy of Philippines | last post by:
Hello, guys... I'm just starting to develop web applications and I have this problem regarding Session objects At some parts of my application, I open modal dialog window which also opens...
1
by: Matt | last post by:
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px. Here's my attempts and problems: ...
2
by: Ricky K. Rasmussen | last post by:
Hi NG, We have a rather large ASP.NET application that uses popups to display various dialogs to the user. In our work we've come over a rather annoying "bug": If we open a modal dialog using...
8
by: Craig G | last post by:
i have a page with a grid that is opened in a modal dialog. when it posts back it opens a new window for the page can it postback to itself? i tried setting the target of the form showing within...
2
by: sthrudel | last post by:
Hi! I'm working on a web application in Asp.net and what I would like to have is a cross borwser modal dialog which accepts user's input. I would like to catch what the user clicked on the...
0
by: homsar | last post by:
I've seen many posts discussing the options we have when using modal windows within a web based application. Often times it seems the greatest hurdle is simply getting the modal window to post back...
4
by: abb | last post by:
I have a modal dialog to edit a Notes field. When the Save button is pressed, that field should save the Notes, close the dialog and leave the parent window unchanged (don't refresh or post). ...
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.