Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 VS 2010 开发 Web 应用程序。我使用模态弹出窗口在页面中添加/编辑一些信息,并且面板具有属性visible = false或样式display: none。
visible = false
display: none
但是当页面加载时,所有弹出窗口暂时出现,然后消失。
那么如何避免页面加载时弹出窗口的出现/消失?
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'; }