What are the naming guidelines for ASP.NET controls?

后端 未结 18 1957
离开以前
离开以前 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:58

    I found the only reason to use Hungarian notation was that the IDE did not have intellisense and it was not easy to figure out what was what so iCounter was an integer

    However the time of using brief to develop is long gone and the IDE shows you the info in a second

    Then you inherit VB.NET code and it is not case sensitive so what do you do?

    lblFirstName, txtFirstName One is a label the other is the textbox

    So how do you name these without case sensitivity and actually know what they are?

    uxFirstName & uxFirstName does not work

    the only answer i have found is to use Hungarian notation, yes i threw up in my mouth. Then again its vb.net and it should be case sensitive since .net is and all of the compiles to IL.

提交回复
热议问题