473,624 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Textbox Web Control v/s HTML Text Box

What is the difference/advantages/disadvantages of using Textbox Web
Control over HTML Text Box with Run at Server?

I could'nt figure out a convincing answer.

I was testing it this morning.. I see both support ViewState , both
support LoadPostBackDat a, both support Server Events .Am I missing any
other important feature?

Appreciate any suggestion/comments on this..

thanks in advance..

Nov 19 '05 #1
4 2846
Two differences I see. But, I wouldn't classify them as advantages or
disadvantages:

1. HTML Text Box with "runat=serv er" does not provide autopostback on text
change, whereas TextBox server control does.
2. HTML text box cannot be multiline; you have to use TextArea for that. But
TextBox can be multi-line; however, this ultimately renders just as a
TextArea.
<sr**********@g mail.com> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com...
What is the difference/advantages/disadvantages of using Textbox Web
Control over HTML Text Box with Run at Server?

I could'nt figure out a convincing answer.

I was testing it this morning.. I see both support ViewState , both
support LoadPostBackDat a, both support Server Events .Am I missing any
other important feature?

Appreciate any suggestion/comments on this..

thanks in advance..
Nov 19 '05 #2
-----------------------------------------------------------------------------------------------------------------------
ACCIDENLY DELETED THE ORIGINAL QUESTION.. SORRY.. REPOSTING IT HERE
-----------------------------------------------------------------------------------------------------------------------

What is the difference/advantages/disadvantages of using Textbox Web
Control over HTML Text Box with Run at Server?

I could'nt figure out a convincing answer.

I was testing it this morning.. I see both support ViewState , both
support LoadPostBackDat a, both support Server Events .Am I missing any
other important feature?
Appreciate any suggestion/comments on this..
thanks in advance..

Nov 19 '05 #3
Siva, Thanks

I was curious, about diffrence between simple Web Controls (text ,
button, check etc) vs Curresponding HTML contols, just mentioned text
box to put the question simple..

I missed this

1. HTML Text Box with "runat=serv er" does not provide autopostback on
text
change, whereas TextBox server control does.

... that is a good point

Nov 19 '05 #4
Hi,

HTML controls don't provide much abstraction or features; they just act as
thin wrappers around their corresponding HTML tags. Server controls on the
other hand provide a rich class model with more features/abstractions.
For example, to set the forecolor of a text box, it is as simple as setting
TextBox.ForeCol or. But, is is not that straight forward to do the same for
HTML controls.

Hope this gives some idea.

<sr**********@g mail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
Siva, Thanks

I was curious, about diffrence between simple Web Controls (text ,
button, check etc) vs Curresponding HTML contols, just mentioned text
box to put the question simple..

I missed this

1. HTML Text Box with "runat=serv er" does not provide autopostback on
text
change, whereas TextBox server control does.

... that is a good point
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8386
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when submitting the form to update the database. The server doesn't have the client side value any more. It seems to me that as I begin to write the client side javacript code for form validation and client side editing capabilities in order to save...
2
3899
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow javascript checks for things like valid e-mail addresses or phone numbers (without having to add a separate control for validation). One idea I did some work on was having the control implement the IValidator interface and basically recreating...
1
6694
by: Martin | last post by:
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I assign a value to this textbox using Javascript with 'Form1.TextBox1.Value = "Hello"' But when I want to read the value of this Textbox later on using VB with 'MyVar = TextBox1.Text' it returns nothing.
4
3569
by: Gill Smith | last post by:
After setting the web control text box enable property to FALSE makes the control to loose the data between round trip. I am making sure that the property - EnableViewState = TRUE. Same code when the text box Enable property set to TRUE retains the value. Please advice. -Gill
0
1386
by: jason | last post by:
Hello everyone. I am trying to write some custom command events into a DataGrid. The command that is currently giving me trouble is an "Add" custom command in the footer of a template column. Question #1: In the Add button Command Event I am trying to access the Text value of the TextBox in the other Footer columns. However, inside the Event, the TextBox.Text values are all empty strings, even if they had data typed into them. Is this a...
11
4534
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text - in a text box - and then tell them when the execuate a command "This is not numeric data", I...
8
5069
by: Filipe Marcelino | last post by:
Hi, I'm trying to create a textbox inheriting from the standard textbox. I would like to: 1. repaint the textbox border; 2. define a color for that border; Till now I made this:
0
1686
by: andytsummers | last post by:
Hi I have tried to implement drag and drop by using the following code but I have several problems. 1. When you put your mouse over selected text the cursor is still the i-beam and therefore does not show that the text can be dragged 2. When pressing the mouse button to start a drag the selected text changes - I know this is cause the code does not initiate the dodragdrop until the mouse leaves the control but if I change this then you...
1
2213
by: =?Utf-8?B?Tmltcm9kIFJvdG5lcg==?= | last post by:
Hi, I built a web control wich has text box and public property that set or get the text value of that text box. when i try to access that property i got error: "Object reference not set to an instance of ..." the compilation has no detected problem and i do not understand what is the problem.
0
8679
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.