What are the naming guidelines for ASP.NET controls?

后端 未结 18 1956
离开以前
离开以前 2020-12-07 21:23

We are in the process of nutting out the design guidelines we would like to use in our development team and got into a discussion today around how ASP.NET controls should be

18条回答
  •  悲&欢浪女
    2020-12-07 22:07

    Almost everyone uses Hungarian-style prefixes (option 2). Semantic naming is less useful because "Firstname" is actually the texbox.Text value, not the textbox itself.

提交回复
热议问题