There is not a strong argument for keeping everything in one file, although
some people prefer it, but it's really just their preference.
There's a good reason Visual Studio 2005 uses the code behind model by
default. Code separation is considered a good thing by most experts.
However, if I were writing the quick starts I might consider using the
single page model because it's an easier way to show all the code at once
when trying to teach somebody. That's probably the main reason they chose
that approach for the quick starts.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"David Thielen" <th*****@nospam .nospam> wrote in message
news:EB******** *************** ***********@mic rosoft.com...
Hi;
Almost all of the Quick Starts show the code in the .aspx file inside a
<script> instead of in a seperate .aspx.cs file. My instinct is that the
code
should be in a seperate file to keep the view and the view logic distinct.
Is there a strong argument for combining these in one file? (It may just
feel wrong to me because of years of J2EE/JSP programming where you always
keep them seperate.)
--
thanks - dave