M
Mitch A
What are the advantages of using inline C# code in my aspx pages (with
inline I mean directly in the html between <% %>) versus code behind. It
seems messy and inelegant to have code in both places (IMHO, using inline
*and* code-behind is not object oriented and it generates less readable
code). Since code behind offers syntax highlighting, autocompletion, member
info, parameterinfo etc, is there any reason (design or other) I
couldn't/shouldn't write all code strictly using code-behind.
inline I mean directly in the html between <% %>) versus code behind. It
seems messy and inelegant to have code in both places (IMHO, using inline
*and* code-behind is not object oriented and it generates less readable
code). Since code behind offers syntax highlighting, autocompletion, member
info, parameterinfo etc, is there any reason (design or other) I
couldn't/shouldn't write all code strictly using code-behind.