Patterns and Naming Coventions

  • Thread starter Thread starter vital
  • Start date Start date
V

vital

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.
 
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.
 
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().

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