0

我尝试使用此代码刷新我的更新面板

       function worker() {
           __doPostBack('<%=updatePanel1.ClientID %>', null);
           setTimeout(worker, 5000); // 5000= 5 seconds i.e section will get refereshed in intervals of 5 second
           alert("Hiiii");
       }

</script>

但它会抛出这个错误

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

我没有为此 aspx 页面使用母版页,但我在同一页面上有 iframe,我在其中调用了一些具有母版页的页面

4

0 回答 0