Solved

TextBox vs input

Posted on 2011-09-12
7
606 Views
Last Modified: 2012-06-22
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?
0
Comment
Question by:Camillia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 36525862
If you can, you might want to change the control <asp:TextBox ...>.
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 36525870
However, if the input type equals text, it should equate to and HTML Control for the text box.
0
 
LVL 7

Author Comment

by:Camillia
ID: 36525886
what if i dont want to use a textbox...what is the control for "input". HTMLxxx??
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 23

Expert Comment

by:Saqib Khan
ID: 36525922
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
0
 
LVL 7

Author Comment

by:Camillia
ID: 36526120
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??
0
 
LVL 7

Author Comment

by:Camillia
ID: 36526134
yes, it's HtmlInputText
0
 
LVL 10

Accepted Solution

by:
P1ST0LPETE earned 500 total points
ID: 36527007
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" />
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question