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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modal window disappears

Status
Not open for further replies.

kamfl610

Programmer
Apr 15, 2003
90
0
0
US
Hi all,

I have a problem with a modal window. I'm using a submodal window to bring up another asp.net page. In the parent page, i have the asp button onclientclick event to fire the javascript modal window. What happens is the load screen.html comes up and then when it goes to the asp.net page, the modal window closes. When I change it to an html button on the parent page, the modal window works great. I'm scratching my head over why one works and the other doesn't. I don't know if it's the postback on the asp.net page killing it or something else. Anyone have any ideas? Thanks!
 
Hi,

I ended up finding something that would stop the window from disappearing.

At the end of my javascript of my onclientclick, I added this to it:

return false;

This stopped me from doing the postback to the parent page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top