• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 682
  • Last Modified:

TextBox vs input

I have a field <input  runat ="server" id="email" ..>

This is in a formview. I want to find that control...can I use a Textbox to find it
TextBox email = frmContact.FindControl("email") as TextBox;

Or HTMLControl something?
1 Solution
Shaun KlineLead Software EngineerCommented:
If you can, you might want to change the control <asp:TextBox ...>.
Shaun KlineLead Software EngineerCommented:
However, if the input type equals text, it should equate to and HTML Control for the text box.
CamilliaAuthor Commented:
what if i dont want to use a textbox...what is the control for "input". HTMLxxx??
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Saqib KhanSenior DeveloperCommented:
input itself is nothing really.."Type" attribute is required.
<input type="text">
<input type="button">

runat=server attribute makes your controls to be accessed via .Net FrameWork
CamilliaAuthor Commented:
i just tried TextBox" and it cant find the control. I do have type="text". But seems like I cant use a TextBox...So it's HTML something?? HTMLInput maybe??
CamilliaAuthor Commented:
yes, it's HtmlInputText
A textbox in HTML is an input of type text.

HTML Textbox = <input type="text" />

Also, an <asp:Textbox> control renders a <input type="text" />

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now