Difference between <asp:textbox> and <input runat="server">

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all...

Both controls are server side. The former has more properties. Both may have
associated events that are ran at server.

Which one are recommended to use? is performance an issue? in what case I
can (or must) use the second?

If I want an input control that has specific font or color, I can use client
side <input> so I'm wondering if there is an advantage to use <input> as
server side control.

Can you clarify me this point, please?

Thanks in advance
Jaime
 
HTML Controls do not have the server side events that there comparative
controls have nor are they objects of the same type. Running HTML controls
As server controls gives you limited programatic control over their
attributes. For example one could set the SRC for a IFRAME this way.

Mr N . . . . 0O=<
Daaa Daaaa daaa Daaaa Da Daaaaaaa Daaaaa !!
 
that's not true, they have server events, but the names are different:

<asp:TextBox id="TextBox1" runat="server"
OnTextChanged="TextBox1_TextChanged"></asp:TextBox>

<input id="TextBox2" type="text" runat="server"
onserverchange="TextBox2_ServerChange" />
 
Hmmm, I appear to be talking bo**ocks.

Im sure there are other differences though.
 

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

Back
Top