开发者

Jquery and UpdatePanel

开发者 https://www.devze.com 2022-12-12 03:19 出处:网络
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

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.

0

精彩评论

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