difference between html and webcontrol ?

G

gabriel

greetings,

I understand the difference when the webcontrol generates its html with
feeding its Text property but not the following :

<input name="login" type="text" size="8" id="login" runat="server">
<asp:textbox id="txtUserName" runat="server" width="160px">


both run on the server, both have a protected field.

Is it 2 ways of doing the same thing ???

many thx !
 
K

Karl Seguin

Scott has a nice write up:
http://www.odetocode.com/Articles/348.aspx

Sometimes you don't have a choice to use one (htmlfileinput) or the other
(datalist)...I like to think that HtmlControls are mostly there to help
people get their ASP/HTML pages quickly converted to ASP.Net (slap on a
runat="server" and an id and voila...)

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top