Solved

TextBox vs input

Posted on 2011-09-12
7
590 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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