更新面板不使用ClientIDMode = static [英] Update panel not working with ClientIDMode=static

查看:101
本文介绍了更新面板不使用ClientIDMode = static的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个包含10个下拉列表的页面,其中所有下拉列表都选择了IndexIndexChanged Event& AutoPostback属性=" True"



为了避免每个DropDownList项目选择的页面加载,我正在使用Updatepanel。



但是,由于所有下拉列表clientIdMode =Static,UpdatePanel不能与DropDownLists一起使用。如果我将ClientIdMode更改为Auto,它可以正常工作。我希望ClientIdMode是静态的因为我在DropDownList控件上应用JQuery代码,



怎么做?

Hi,

I've a page with more than 10 dropdownlists where all dropdownlists have selectedIndexChanged Event & AutoPostback property="True".

To avoid page load on each DropDownList item selection, I'm using Updatepanel.

But, UpdatePanel does not work with DropDownLists since All dropdownlists clientIdMode="Static". If I change ClientIdMode to "Auto", it works fine. I want ClientIdMode to be "static" since I apply JQuery code on DropDownList controls,

How to do this?

推荐答案

UpdatePanel和ClientIDMode =静态的可能解决方案

ref。

http://stackoverflow.com/questions/13744513/possible-solution-to-updatepanel-and-clientidmode-static [ ^ ]

https ://connect.microsoft.com/VisualStudio/feedback/details/584991/clientidmode-static-in-updatepanel-fails-to-do-async-postback [ ^ ]
Possible solution to UpdatePanel and ClientIDMode="Static"
ref.
http://stackoverflow.com/questions/13744513/possible-solution-to-updatepanel-and-clientidmode-static[^]
https://connect.microsoft.com/VisualStudio/feedback/details/584991/clientidmode-static-in-updatepanel-fails-to-do-async-postback[^]


这篇关于更新面板不使用ClientIDMode = static的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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