G
Guest
In my page I use window.ShowModalDialog
----------------------------------------------------------------
Page.RegisterStartupScript("PopUpPerson", _
"<script language=""Javascript"">" & vbCrLf & _
"window.showModalDialog('Person.aspx?id=" & SelectedPersonID &
"','','dialogWidth:720px; dialogHeight:450px; statusff; center:Yes;
help:No; scroll:No;');" & vbCrLf & _
"</script>")
-----------------------------------------------------------------
to render a details page in a modal window. Yet when I press a button to
Save the
modifications on that page the page postbacks and redraws in a new window.
The Save button is a server side ASP:Button which for the moment does nothing.
How can I prevent a postback event to open a new window to redraw the page?
----------------------------------------------------------------
Page.RegisterStartupScript("PopUpPerson", _
"<script language=""Javascript"">" & vbCrLf & _
"window.showModalDialog('Person.aspx?id=" & SelectedPersonID &
"','','dialogWidth:720px; dialogHeight:450px; statusff; center:Yes;
help:No; scroll:No;');" & vbCrLf & _
"</script>")
-----------------------------------------------------------------
to render a details page in a modal window. Yet when I press a button to
Save the
modifications on that page the page postbacks and redraws in a new window.
The Save button is a server side ASP:Button which for the moment does nothing.
How can I prevent a postback event to open a new window to redraw the page?