Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ModalWebform Cancel Button

Status
Not open for further replies.

benvegiard

Programmer
May 15, 2003
63
US
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
 
If it has to do with an implicit postback, could you not simply set the autopostback property to false? I'm not sure I entirely understand your problem, so if this does not help, perhaps some relevant code would assist us to help you.

------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)
 
OK, for posterity, in trying different ideas… I turned SmartNavigation on and set the target browser to IE 5.0 and the behavior stopped. In my environment (intranet) I can get away with that.

Thanks,
Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top