简体   繁体   中英

Hide popup is appearing while page is loading

I am using VS 2010 for developing a web application. I used modal popup for adding/editing some information in page and the panel have the property visible = false or style display: none .

But when page is loading at that time all the pop up is appearing for a time being and then it is disappearing.

So how can I avoid the appearing/disappearing of the popup while page loading?

Try setting up the style using javascript and call this function on OnOkScript/OnCancelScript of modal popup.

ex

function hide() { document.getElementById('<%=MyPanel.ClientID%>').style.display='none'; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM