Weng Fai Wong
Weng Fai Wong

Reputation: 640

Web form (.aspx) naming convention

Should it be capitalised on the first letter? As an example, AddUser.aspx instead of adduser.aspx. Which is better?

Upvotes: 4

Views: 3477

Answers (3)

Shyju
Shyju

Reputation: 218892

I started making it all lowercase letters because I like to see the same case in the URL. Usually, most website URLs will be seen in lowercase only, so I don't want to add some uppercase chars to the URL.

It's personal preference, varies from person to person, project to project

Upvotes: 2

Peanut
Peanut

Reputation: 19407

I always use capitals for the first letter. In fact for each word within the filename. This is because for me it makes the words within the name standout and therefore helps to more quickly give a clue as to the use of the file.

Upvotes: 0

Andy White
Andy White

Reputation: 88475

I think AddUser.aspx would be more commonly used than addUser.aspx or adduser.aspx. An aspx is basically a .NET class, so it makes sense to name it using the standard class naming conventions (capitalize first letter, and first letter of every word).

Upvotes: 5

Related Questions