What are the naming guidelines for ASP.NET controls?

后端 未结 18 1892
离开以前
离开以前 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 21:56

    Microsoft does provide some guidance here.

    When you drag a control onto a web form you get something like "TextBox1" automatically. That's the IDE telling you that you should change the "1" part for your specific needs.

    In that case, "TextBoxFirstName" seems like the way to go.

提交回复
热议问题