开发者

Update pannel not working

开发者 https://www.devze.com 2023-02-11 04:45 出处:网络
Dear all. I have an update panel and nested repeaters in it. I have image which when i click shows the other nested repeaters data and so on. The rows are shown and 开发者_JS百科hidden using the clien

Dear all. I have an update panel and nested repeaters in it. I have image which when i click shows the other nested repeaters data and so on. The rows are shown and 开发者_JS百科hidden using the client script written on code behind.

The Page is working fine , but it refreshes the page every time i click to show data. If i put page in update panel, the page stops showing rows.

How to register the javascript with update panel.

Best Regards Imran


This is how to register your javascript with the updatePanel: You place your javascript globally, out side UpdatePanel so your libraries loaded, and then using this code you initialized it on every update panel, if needed.

<script type="text/javascript"> 
var prm = Sys.WebForms.PageRequestManager.getInstance();    
prm.add_initializeRequest(InitializeRequest);
prm.add_endRequest(EndRequest);

function InitializeRequest(sender, args) {      
}

function EndRequest(sender, args) {

}
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消