472,958 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 5468
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.