ClientIDMode Static在下拉菜单中不起作用 [英] ClientIDMode Static is not working in dropdown

查看:79
本文介绍了ClientIDMode Static在下拉菜单中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我的下拉列表ID会自动更改为带有我设置的ID的字母.

但我不想更改ID.

我在Google中搜索并找到了此链接
ClientIDMode

这不适用于我的下拉菜单.

还有其他方法可以使ID静态化.

请帮助

在此先谢谢.

Hi all

My Dropdown Id is automatically changed to some letter with my setted id.

But I don''t want to change the ID.

I searched in google and found this link
ClientIDMode

This is not working for my dropdown.

Is there any other way to made the ID static.

Please Help

Thanks In advance.

推荐答案

您可以在jquery中这样做.效果很好.

You can do it in jquery like this. its working well.


(" ).change(// 进行求和 });
("#<%=DropDownList1.ClientID%>").change(function(){ //do sumthing });


如果由于ID更改而在执行jQuery东西时遇到问题
那你可以解决这个问题

If you are getting problem for doing jQuery stuff due the id change
Then you can this solution


这篇关于ClientIDMode Static在下拉菜单中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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