简体   繁体   English

在项目或解决方案级别更改默认的ASP.NET ClientIDMode?

[英]Change the default ASP.NET ClientIDMode at the project or solution level?

Does anyone know if it's possible to change the default ClientIDMode for an entire project / solution / web deployment? 有谁知道是否可以更改整个项目/解决方案/ Web部署的默认ClientIDMode

It would be nice not to have to change this on the few pages we actually use asp.net controls. 如果不必在我们实际使用asp.net控件的几个页面上更改它,那将是很好的。

是的,您可以在web.config中设置ClientIDMode

<pages clientIDMode="[AutoID|Predictable|Static]" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM