Problem passing data between modal dialog and parent window
-
Hi! I'm really having trouble sending data from a modal dialog window to a parent window in asp.net I have a parent page with several textboxes and each textbox has a button that opens a lookup child window (modal dialog) when clicked. The lookup pages have filtered datagrid data, that when are selected should be passed back to the parent page. My problems are: 1- my modal dialog has a couple of dependent dropdownlists to filter the datagrid information. Everytime I select an option from the first dropdownlist, the page is reloaded and it opens in a new window normal window. And I still have the modal dialog open. I want to use the modal dialog, not the new opened window. 2 - I have already been able to send data from the dialog to the parent page with querystrings, but I would prefer not to use this method, besides, like I've described above, I have to open several lookup pages, and each time I open another one, I loose the data passed from the previous, because the window location (URL) becomes diferent due to the new querystring and the page loads again and all the controls loose their info. Please help me... send a post Best regards Mario Ramos
-
Hi! I'm really having trouble sending data from a modal dialog window to a parent window in asp.net I have a parent page with several textboxes and each textbox has a button that opens a lookup child window (modal dialog) when clicked. The lookup pages have filtered datagrid data, that when are selected should be passed back to the parent page. My problems are: 1- my modal dialog has a couple of dependent dropdownlists to filter the datagrid information. Everytime I select an option from the first dropdownlist, the page is reloaded and it opens in a new window normal window. And I still have the modal dialog open. I want to use the modal dialog, not the new opened window. 2 - I have already been able to send data from the dialog to the parent page with querystrings, but I would prefer not to use this method, besides, like I've described above, I have to open several lookup pages, and each time I open another one, I loose the data passed from the previous, because the window location (URL) becomes diferent due to the new querystring and the page loads again and all the controls loose their info. Please help me... send a post Best regards Mario Ramos
-
The question is appear here that how do you have modal dialog window in ASP.NET? :omg: Mazy No sig. available now.
Hi Mazy I have a javascript function as follows: #javascript code function MostraEq() { strReturn=window.showModalDialo('procura_equipamento.aspx',null,'status:yes;dialogWidth:350px;dialogHeight:350px;dialogHide:true;help:no;scroll:auto;center:yes;resizable:no'); } #end javascript code and then in codebehind in Page_Load I add an attribute to the button as follows: #asp.net code btnProcuraEquipamento.Attributes.Add("onclick", "MostraEq();") #end asp.net code That part was easy....
-
Hi Mazy I have a javascript function as follows: #javascript code function MostraEq() { strReturn=window.showModalDialo('procura_equipamento.aspx',null,'status:yes;dialogWidth:350px;dialogHeight:350px;dialogHide:true;help:no;scroll:auto;center:yes;resizable:no'); } #end javascript code and then in codebehind in Page_Load I add an attribute to the button as follows: #asp.net code btnProcuraEquipamento.Attributes.Add("onclick", "MostraEq();") #end asp.net code That part was easy....
Look at this, perhaps it helps you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.asp Michela