L
luna
im playing around with showmodeldialog, and the child window isnt returning
the variable to the parent
in the parent i have
Button2.Attributes.Add("onclick", "var strReturn;
strReturn=window.showModalDialog('test.aspx',null,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;help:no;scroll:no');if
(strReturn != null) document.getElementById('Label45').value=strReturn;")
child window has
Button1.Attributes.Add("onclick", "window.returnValue =
document.getElementById('TextBox1').value; window.close();")
if im correct - it should pass contents of TextBox1 to the parent and the
parent should show Label45 as the passed back variable - except it does
nothing ?
i feel like im on the right track somewhere!
cheers
Mark
the variable to the parent
in the parent i have
Button2.Attributes.Add("onclick", "var strReturn;
strReturn=window.showModalDialog('test.aspx',null,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;help:no;scroll:no');if
(strReturn != null) document.getElementById('Label45').value=strReturn;")
child window has
Button1.Attributes.Add("onclick", "window.returnValue =
document.getElementById('TextBox1').value; window.close();")
if im correct - it should pass contents of TextBox1 to the parent and the
parent should show Label45 as the passed back variable - except it does
nothing ?
i feel like im on the right track somewhere!
cheers
Mark