473,666 Members | 2,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebControls Vs HTML Controls

Hi, I'm newbie to ASP.Net and I'd like to know the best way and when shoul I
use WebControls and HTML Controls, what is the difference ?
I'm developing a login system but i don't know if i use the textfield (HTML
Controls) or textbox (WebControls). What's the difference ?

I hope you can help me!

Thanks a lot!
Nov 19 '05 #1
4 1318
I just did the same thing. I had to use the HTML Password control because
the TextBox WebControl didn't have a "password" property (at least that I
could find).

"Daniel Groh" <ne*********@gm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi, I'm newbie to ASP.Net and I'd like to know the best way and when shoul
I use WebControls and HTML Controls, what is the difference ?
I'm developing a login system but i don't know if i use the textfield
(HTML Controls) or textbox (WebControls). What's the difference ?

I hope you can help me!

Thanks a lot!

Nov 19 '05 #2
HTML controls are lightweight and familiar to old school HTML developers.

Web Controls are more feature rich and are more familiar to old school VB6
developers.

Here are more details about the differences between HTML controls and Web
Controls:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Daniel Groh" <ne*********@gm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi, I'm newbie to ASP.Net and I'd like to know the best way and when shoul
I use WebControls and HTML Controls, what is the difference ?
I'm developing a login system but i don't know if i use the textfield
(HTML Controls) or textbox (WebControls). What's the difference ?

I hope you can help me!

Thanks a lot!

Nov 19 '05 #3
It has a Text property. What you probabaly want is the TextMode="Passw ord".

-Brock
DevelopMentor
http://staff.develop.com/ballen
I just did the same thing. I had to use the HTML Password control
because the TextBox WebControl didn't have a "password" property (at
least that I could find).

"Daniel Groh" <ne*********@gm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi, I'm newbie to ASP.Net and I'd like to know the best way and when
shoul
I use WebControls and HTML Controls, what is the difference ?
I'm developing a login system but i don't know if i use the textfield
(HTML Controls) or textbox (WebControls). What's the difference ?
I hope you can help me!

Thanks a lot!


Nov 19 '05 #4
Someone just answered this one another thread... I can't find the link..
anyway...

WebControls have a richer higher level API, so in general their easier to
use and are more consistent. I'd suggest using these first. The HtmlControls
are really just objects that wrap the goodl old html tags like <input type=text>
and others. I use these when I want lower level control over the HTML specifically
when I'm doing a lot of client-side javascript (not that you can't do this
with the WebControls).

So in short go with the WebControls until you find something they don't do
so well in the client, then look atthe HtmlControls.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi, I'm newbie to ASP.Net and I'd like to know the best way and when
shoul I
use WebControls and HTML Controls, what is the difference ?
I'm developing a login system but i don't know if i use the textfield
(HTML
Controls) or textbox (WebControls). What's the difference ?
I hope you can help me!

Thanks a lot!


Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4303
by: Andreas Klemt | last post by:
Hello, I have this: <table id="myTable" runat="server"> <tr> <td><asp:label id="lblText" runat="server"></asp:label> <asp:button id="btn1" runat="server"></asp:button> <asp:button id="btn2" runat="server"></asp:button> <asp:button id="btn3" runat="server"></asp:button> </td>
5
2591
by: martin | last post by:
Hi, I am using vb.net and visual studio 2003. I have dragged a table webcontrol onto the designer server and configured a few columns and cells in the editor for the table control. Next I wanted to do things like add textbox websever controls to the individual cells. However, the designer will not allow me to drag controls from the toolbox to tinside the newly generated table.
4
2827
by: Henri | last post by:
For instance, when should I use HtmlControls.HtmlImage, and when should I use WebControls.Image ? And what is the difference between <img runat="server" /> and <asp:image runat="server" /> ?
2
1405
by: Dexter | last post by:
Hello all, I have webform1, and i need to make a bow to catch all textbox in my webform1. I tray this, but don't function. Dim obj As System.Web.UI.WebControls.TextBox Dim cont As Integer For Each obj In Page.Controls. If TypeOf obj Is System.Web.UI.WebControls.TextBox Then obj.Text = "It is a Textbox"
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.