Textbox Web Control v/s HTML Text Box

  • Thread starter Thread starter sreejith.ram
  • Start date Start date
S

sreejith.ram

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 LoadPostBackData, both support Server Events .Am I missing any
other important feature?

Appreciate any suggestion/comments on this..

thanks in advance..
 
Two differences I see. But, I wouldn't classify them as advantages or
disadvantages:

1. HTML Text Box with "runat=server" 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.


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 LoadPostBackData, both support Server Events .Am I missing any
other important feature?

Appreciate any suggestion/comments on this..

thanks in advance..
 
-----------------------------------------------------------------------------------------------------------------------
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 LoadPostBackData, both support Server Events .Am I missing any
other important feature?


Appreciate any suggestion/comments on this..


thanks in advance..
 
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=server" does not provide autopostback on
text
change, whereas TextBox server control does.

... that is a good point
 
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.ForeColor. But, is is not that straight forward to do the same for
HTML controls.

Hope this gives some idea.

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=server" does not provide autopostback on
text
change, whereas TextBox server control does.

... that is a good point
 

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