benvegiard
Programmer
Hi All..
I have used JavaScript to popup a modal window. On this window I have a report parameter input controls, a submit, and a cancel button. I'd like the Cancel button to close the window and return the user to the prior form.
However, when the Cancel button is a ASP:Button running at the server, a third browser window is opened with the contents of the ModalWIndow. I am assuming this is because of an implicit postback for server side controls.
If I use an HTMLButton and simply call JavaScript, it works fine.
My problem is that I need to do this with the Submit button as well, but need to call server side code. I need to avoid the third window being opened. Does anyone know a technique to do this?
Thanks,
Ben
I have used JavaScript to popup a modal window. On this window I have a report parameter input controls, a submit, and a cancel button. I'd like the Cancel button to close the window and return the user to the prior form.
However, when the Cancel button is a ASP:Button running at the server, a third browser window is opened with the contents of the ModalWIndow. I am assuming this is because of an implicit postback for server side controls.
If I use an HTMLButton and simply call JavaScript, it works fine.
My problem is that I need to do this with the Submit button as well, but need to call server side code. I need to avoid the third window being opened. Does anyone know a technique to do this?
Thanks,
Ben