N
neilmcguigan
I just wanted to list some reasons why I prefer inline code to
code-behind.
1. you can fix some bugs more quickly. remote desktop into server,
change the aspx file, and she's good to go. I'd say this is one of the
major reasons classic ASP became so popular.
2. don't have to upload the large codebehind site DLL to fix one bug.
3. updating the codebehind site DLL restarts the application. fixing
one aspx page does not. (um, i think)
4. one file to upload, not two.
5. if you manually add a runat=server control to the aspx page (ie not
from toolbox), you have to add some more stuff to the codebehind page
manually, but not with inline
6. the code/html separation thing is pretty bunk in my mind. if all
code is in a script tag at the top of the page, and all html is below
it, that's separate enough for me.
7. MS added better support for inline code in 2.0, such as
intellisense, so they obviously are going to support it in the future.
code-behind.
1. you can fix some bugs more quickly. remote desktop into server,
change the aspx file, and she's good to go. I'd say this is one of the
major reasons classic ASP became so popular.
2. don't have to upload the large codebehind site DLL to fix one bug.
3. updating the codebehind site DLL restarts the application. fixing
one aspx page does not. (um, i think)
4. one file to upload, not two.
5. if you manually add a runat=server control to the aspx page (ie not
from toolbox), you have to add some more stuff to the codebehind page
manually, but not with inline
6. the code/html separation thing is pretty bunk in my mind. if all
code is in a script tag at the top of the page, and all html is below
it, that's separate enough for me.
7. MS added better support for inline code in 2.0, such as
intellisense, so they obviously are going to support it in the future.