简体   繁体   English

ASP.NET中的“ ID”和“ BehaviorID”属性有什么区别?

[英]What's the difference between the property “ID” and “BehaviorID” in ASP.NET?

Both seems to have the same functionality. 两者似乎具有相同的功能。 What's the main difference, anyway? 无论如何,主要区别是什么?

The ID is the unique server side identifier of your ASP.NET control. 该ID是ASP.NET控件的唯一服务器端标识符。 The behaviorID is an optional client side javascript identifier that can be specified on Extender controls. behaviorID是一个可选的客户端javascript标识符,可以在Extender控件上指定。 They are completely different. 它们完全不同。

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

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