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?
Who is Participating?
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" />
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.
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

CamilliaAuthor Commented:
what if i dont want to use a textbox...what is the control for "input". HTMLxxx??
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.