Camillia
asked on
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("em ail") as TextBox;
Or HTMLControl something?
This is in a formview. I want to find that control...can I use a Textbox to find it
TextBox email = frmContact.FindControl("em
Or HTMLControl something?
If you can, you might want to change the control <asp:TextBox ...>.
However, if the input type equals text, it should equate to and HTML Control for the text box.
ASKER
what if i dont want to use a textbox...what is the control for "input". HTMLxxx??
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
<input type="text">
<input type="button">
runat=server attribute makes your controls to be accessed via .Net FrameWork
ASKER
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??
ASKER
yes, it's HtmlInputText
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.