![]() |
|
|
|
#1 |
|
Hi,
Am using the below code to popup a modal dialog box. I got the value back from the child window to the parent window. Now i want to assign the value to one of the text boxes on the parent window. Before that i was just checking the value in the text box and am getting an error message that document.form... is null or object not reference. Can someone help me out in reading and setting the value to/from the parent page's text box. I have tried with many combination of the javascript like: document.forms[0].elements[txtTitle].value document.form1.txtTitle.value and few others.... Here is the code ************************************************** *** Response.Write(" <script language=""javascript"">") Response.Write(" {") 'Response.Write(" var strReturn; strReturn=window.showModalDialog('child.aspx',null ,'status:no;dialogWidth:370px;dialogHeight:220px;d ialogHide:true;help:no;scroll:no');if (strReturn != null) document.getElementById('txtTitle').value=strRetur n;") Response.Write(" var strReturn; strReturn=window.showModalDialog('child.aspx',null ,'status:no;dialogWidth:370px;dialogHeight:220px;d ialogHide:true;help:no;scroll:no');") Response.Write(" alert(document.frmMaterialRequest.elements[txtTiltle].value); }") Response.Write(" </script>") ********************************************* Thanks in Advance. rameshk75 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sessions in Aspx getting mixed up | jet vedi | Software | 0 | 07-23-2009 07:25 PM |
| export aspx page to word format or pdf format as it is display in aspx page | getmeaditi | Software | 0 | 03-10-2009 07:15 AM |
| how to access iframe from an aspx page | eyal1234 | Software | 1 | 07-22-2008 10:57 AM |
| How to load Two iframe in one aspx page? | pratima | Software | 2 | 02-02-2008 03:17 AM |
| Enbedding aspx page into another aspx page and post back | Naga_01 | Software | 0 | 06-06-2006 06:51 AM |