code behind provides intellisense (if you are using a tool) and better
compile-time error reporting. It gives you the illusion that your code and
presentation layer is separate which is good enough for most. If you are
using VS.Net, the benefits of codebehind are worth it (considering there
isn't a price to pay).
One of the reasons HTMLControls exist is to make porting html/asp code to
ASP.Net quick and easy. Simply add an id and a runat="server" and you
quickly have an object you can program against in code. Also, you need it
for things like file uploads and the such...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
" Newbie (C#,Asp.net)" <ne****@microsoft.com> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
Hi
I have two simple questions that I make sure that I have underestood them
1) what is the main difference between inline coding and code behind
besides that code behind is part of DLL and is not visible like inline coding .
2) I am strill kind of confused why there is HTML server control when we
have equivalents in Web server controls ,why we should make an HTML
control to be run at server ?? what is the main difference betwwen these two guys?
thanks for your help