Patterns and Naming Coventions

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.
 
L

laziers

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.
 
E

Eliyahu Goldin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top