T
ton
Hi,
I 've a problem. Consider 2 webforms
webform1 got a button: in the Page_Load event, this code:
Button1.Attributes.Add("onclick",
"window.showModalDialog('webform2.aspx',null,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;help:no;scroll:no');")
the 2nd form got a button2 in the Page_Load event, this code:
Button2.Attributes.Add("onclick", "window.close();")
what happens is that the second dialog is a nice pop-up, but after closing
it is closed and RELOADED again (but then not as modal form and not in the
specified height/width
What am I doing wrong??
Ton
I 've a problem. Consider 2 webforms
webform1 got a button: in the Page_Load event, this code:
Button1.Attributes.Add("onclick",
"window.showModalDialog('webform2.aspx',null,'status:no;dialogWidth:370px;dialogHeight:220px;dialogHide:true;help:no;scroll:no');")
the 2nd form got a button2 in the Page_Load event, this code:
Button2.Attributes.Add("onclick", "window.close();")
what happens is that the second dialog is a nice pop-up, but after closing
it is closed and RELOADED again (but then not as modal form and not in the
specified height/width
What am I doing wrong??
Ton