Mohamad Alhamoud
Mohamad Alhamoud

Reputation: 4929

Are there benefits to placing ASP.Net code in a separate file?

Are there benefits to placing ASP.Net code in a separate file?

Upvotes: 2

Views: 403

Answers (2)

Kerido
Kerido

Reputation: 2940

If you place your code in a separate file, many of your errors will be caught by the compiler BEFORE you actually run your site. It's always better to fix compile time errors, rather than run-time ones.

Upvotes: 2

Fredou
Fredou

Reputation: 20140

it's useful to make a Separation of concerns and you really don't want a tag soup

Upvotes: 1

Related Questions