How to display model popup at first time page load only
Posted
by
Guna Sundari
on Stack Overflow
See other posts from Stack Overflow
or by Guna Sundari
Published on 2012-09-17T09:35:50Z
Indexed on
2012/09/17
9:37 UTC
Read the original article
Hit count: 163
ASP.NET
I used the following code to display model popup for the first time page load,
<script type="text/javascript">
function pageload() {
var chkPostBack = '<%= Page.IsPostBack ? "true" : "false" %>';
if (chkPostBack == 'false') {
var popup = $find('ModalPopupExtender1');
if (popup != null) {
popup.show();
}
}
}
I got the following error, Please help me.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
© Stack Overflow or respective owner