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>
精彩评论