Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net 2.0 controls naming convention.

Status
Not open for further replies.

NickMalloy

Programmer
Apr 15, 2005
68
US
I want to know if there is a list of naming conventions for the new controls in asp.net 2.0. Anyone have one. When I say naming convention I am talking like a textbox would start with txt
 
Here's one that I've used and liked.

"In recent projects (the past couple years), I have taken to a single prefix for all my UI controls. I typically use "ux" (I used to use "ui", but it wasn't set apart well in intellisense). "ux" comes from my usual design abbreviations where it means "User eXperience". I have found this to be extremely helpful in that I get the desired grouping in the intellisense even better than if I use "txt", "lbl" etc. It also allows you to change combo boxes to text boxes etc. without having to change the names."

From
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top