473,383 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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

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
3 5501
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
4
by: Don Wash | last post by:
Hi All! I'm getting the following Error: No DLLs has been compiled yet and nothing in the \bin directory. So it is not the versioning problem or anything like that. And here are the...
7
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine...
4
by: justice750 | last post by:
Hi All, I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.