Bruce,
Thanks for your quick response but I'm still having the same problem (i.e.
the page is still posting back after a window.close; return false;).
The script in my parent page is as follows:
window.showModalDialog('Lookup_Cust.aspx' ,'Customer Lookup','dialogHeight:
470px; dialogWidth: 700px; edge: Raised; center: Yes; help: No; resizable:
No; status: No; unadorned: No; scroll: No');
Even if I put 'return false;' after the showModalDialog method, the page
still posts to the server.
Any other ideas as an unnecessary post seems so, well - unnecessary?
Regards
John.
"Bruce Barker" <br******************@safeco.com> wrote in message
news:e8*************@TK2MSFTNGP15.phx.gbl...
change the onclick routine to "window.close;return false;"
-- bruce (sqlwork.com)
"John" <a@b.com> wrote in message
news:uh****************@TK2MSFTNGP12.phx.gbl... Hi all,
My web app makes use of the ShowModalDialog in a couple of places. In
certain instances, the user may click on a "Cancel" image button (there
is no code-behind for this) at which point a Javascript runs which does a
window.close()
The problem is that the parent page still posts to the server when there
is clearly no need to. How can I prevent the parent from posting to the
server?
Regards
John.