Hi,
I 've a problem. Consider 2 webforms
webform1 got a button: in the Page_Load event, this code:
Button1.Attribu tes.Add("onclic k",
"window.showMod alDialog('webfo rm2.aspx',null, 'status:no;dial ogWidth:370px;d ialogHeight:220 px;dialogHide:t rue;help:no;scr oll:no');")
the 2nd form got a button2 in the Page_Load event, this code:
Button2.Attribu tes.Add("onclic k", "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.Attribu tes.Add("onclic k",
"window.showMod alDialog('webfo rm2.aspx',null, 'status:no;dial ogWidth:370px;d ialogHeight:220 px;dialogHide:t rue;help:no;scr oll:no');")
the 2nd form got a button2 in the Page_Load event, this code:
Button2.Attribu tes.Add("onclic k", "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
Comment