Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Patterns and Naming Coventions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vital - 02 Dec 2007 04:29 GMT
Hi,

I am doing a Project designing and development of all the three
tiers(Presentation, Business and Database). In the Presentation tier
are there any patterns should be followed.

I want to know what is the standard way of naming web form controls
and methods in the C# Codebehind.

Thanks.
laziers@gmail.com - 02 Dec 2007 07:34 GMT
> I want to know what is the standard way of naming web form controls
> and methods in the C# Codebehind.

Hi

Check in the Microsoft FxCop, tier "Naming Rules", maby there You will
find the answers.
Eliyahu Goldin - 02 Dec 2007 10:29 GMT
I am not aware about any formal naming conventions.

I personally prefix server control names with 3 letter abbreviation of the
class name, like txtUserName for a TextBox or ddlState for a Dropdown List.
For methods I use rather long names that describe the method purpose, like
populateUserGrid().

Signature

Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net

> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.