As long as it is not INSIDE the HTML (IOW, it is above the first <html>
tag), it is fine to put your CodeBehind class definition in the same file as
the Page Template. Mixing Code and Content is never a good idea.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Jack Frost" <ex****@exc.dom> wrote in message
news:3f**********@newspeer2.tds.net...
What is the consensus on putting ASP.NET code inline in the html doc
versus using code behind and C#. I find it confusing when pages include code in
both places. For example, using DataBinder.Eval statements in the HTML.
Is there an advantage to doing any coding within the HTML page? It seems
cleaner to do all coding in the webform but I am an admitted DOTNET newbie
Thanks