Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Few Newbie questions
Message
From
28/10/2010 11:30:15
 
 
To
28/10/2010 10:14:14
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01487336
Message ID:
01487395
Views:
65
Prefacing a control with they type is generally frowned on in the .NET world. Yes, I know it's done alot in sample code. The Framework Design Guidelines say that things should always be spelled out unless they are commonly used/known, for example, Html.


>Hi Mike,
>
>Why do you prefer "SaveOrderButton" instead of "btnSaveOrder" ? All the recommended junk aside, intellisense is a wonderful thing. If I am trying to access a button and I type "this.btn" I will see all my buttons in intellisense. I ususally know it is a button I am looking for but not always if I named it "SaveOrder" or "OrderSave" I am not criticising mind you, I am just curious if there is some reason I am overlooking by having the word "Button" or "Textbox" and if so, why at the end where intellisense has less value.
>
>I never did understand the underscore thing but I know it is popular. It just shows how much I don't like reaching for the underscore button I guess.
>Tim
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform