Jquery and UpdatePanel
I have used Jquery for rounded corners (DIV) and i have a updatepanel which contains a datalist which contains som images and a delete link. When i c开发者_JAVA百科lick on delete link it fires delete command and it deletes the image.(asynchronouse postback). the problem is when I click the delete button my div:s has no rounded corners anymore.
You need to Register the Javascript with Sys.WebForms i believe, so that it reruns each time the postbacks happen.
eg.
$(document).ready(function() {
YourFunction();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(YourFunction);
});
You might not need to call the function first, i'm not 100% there.
精彩评论