By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,883 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,883 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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 !!

"Jaime Stuardo" <Ja**********@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com...
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

Nov 19 '05 #2

P: n/a
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" />

Nov 19 '05 #3

P: n/a
Hmmm, I appear to be talking bo**ocks.

Im sure there are other differences though.

<ne**********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
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" />

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.