选择:jQuery插件...不会在asp.net回发后工作 [英] Chosen : jQuery plugin...does not work after postback in asp.net

查看:82
本文介绍了选择:jQuery插件...不会在asp.net回发后工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 http://harvesthq.github.io/chosen/ 控制下拉列表。一切都很好,但我面临的一个问题一样,如果我设置下拉downlist即财产的AutoPostBack =真正的,选择一个项目控制损耗其财产后,并转换到正常下拉列表

i am using http://harvesthq.github.io/chosen/ control in drop-down list. Everything is going good but i am facing a problem like if i am setting the property of drop-downlist i.e AutoPostBack="true",after selecting one item the control lossing its property and converting to normal drop-down list

任何人都可以对此有任何想法?请给我建议。

Can anyone have any idea about this? Please suggest me.

感谢

推荐答案

如果你要绑定在 $(文件)。就绪()插件; ,然后添加此code和检查。

If you are binding plugins in $(document).ready();, then add this code and check.

$(document).ready(function(){
//Binding Code
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    function EndRequestHandler(sender, args) {
        //Binding Code Again
    }
});

这篇关于选择:jQuery插件...不会在asp.net回发后工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆