473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

What's the difference between HTML controls and the basic web controls?

Hello,

ASP.NET newbie here so please be nice ;-)

I'm reading ASP.NET Unleashed, following a recommendation here. I am a
little confused about the difference between HTML controls and web
controls. Obviously there are web controls that don't have any relation
to HTML controls (like the calendar), but the basic web controls that
produce links, labels, etc seem to do the same as the HTML controls (or
vice-versa).

So, what's the difference and why use one over the other?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #1
8 2031
One of the differences is to upgrade from another language...it's much
easier to upgrade HTML to use HTMLControls as all you typically need is to
add an id and a runat="server". WebControls require more changes. Having
said that, webcontrols provide more capacity so down the road it's good to
go towards them.

There are also html controls which have no relations to web controls, such
as the fileinput and the generic controls...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:T+**************@nospamthankyou.spam...
Hello,

ASP.NET newbie here so please be nice ;-)

I'm reading ASP.NET Unleashed, following a recommendation here. I am a
little confused about the difference between HTML controls and web
controls. Obviously there are web controls that don't have any relation
to HTML controls (like the calendar), but the basic web controls that
produce links, labels, etc seem to do the same as the HTML controls (or
vice-versa).

So, what's the difference and why use one over the other?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #2
Alan,

They inherit from different classes and have different sets of members.

Eliyahu

"Alan Silver" <al*********@nospam.thanx> wrote in message
news:T+**************@nospamthankyou.spam...
Hello,

ASP.NET newbie here so please be nice ;-)

I'm reading ASP.NET Unleashed, following a recommendation here. I am a
little confused about the difference between HTML controls and web
controls. Obviously there are web controls that don't have any relation
to HTML controls (like the calendar), but the basic web controls that
produce links, labels, etc seem to do the same as the HTML controls (or
vice-versa).

So, what's the difference and why use one over the other?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #3
Karl,

Thanks for the reply. Since I'm only looking at ASP.NET for new projects
(I'm happy to leave the old ones in Classic ASP until it's worth
rewriting them from scratch), I guess that means that I would be looking
more at web controls then?

Thanks again
One of the differences is to upgrade from another language...it's much
easier to upgrade HTML to use HTMLControls as all you typically need is to
add an id and a runat="server". WebControls require more changes. Having
said that, webcontrols provide more capacity so down the road it's good to
go towards them.

There are also html controls which have no relations to web controls, such
as the fileinput and the generic controls...

Karl


--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #4
I only use HtmlControls when there's a specific need (which there certainly
are)...from what I've seen that's typically the approach taken.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:$b**************@nospamthankyou.spam...
Karl,

Thanks for the reply. Since I'm only looking at ASP.NET for new projects
(I'm happy to leave the old ones in Classic ASP until it's worth
rewriting them from scratch), I guess that means that I would be looking
more at web controls then?

Thanks again
One of the differences is to upgrade from another language...it's much
easier to upgrade HTML to use HTMLControls as all you typically need is toadd an id and a runat="server". WebControls require more changes. Having
said that, webcontrols provide more capacity so down the road it's good togo towards them.

There are also html controls which have no relations to web controls, suchas the fileinput and the generic controls...

Karl


--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #5
Check out this faq to know difference between HTML control and web controls
http://www.extremeexperts.com/Net/FA...LControls.aspx

--
-Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OL**************@TK2MSFTNGP14.phx.gbl...
I only use HtmlControls when there's a specific need (which there certainly are)...from what I've seen that's typically the approach taken.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:$b**************@nospamthankyou.spam...
Karl,

Thanks for the reply. Since I'm only looking at ASP.NET for new projects
(I'm happy to leave the old ones in Classic ASP until it's worth
rewriting them from scratch), I guess that means that I would be looking
more at web controls then?

Thanks again
One of the differences is to upgrade from another language...it's much
easier to upgrade HTML to use HTMLControls as all you typically need is toadd an id and a runat="server". WebControls require more changes. Havingsaid that, webcontrols provide more capacity so down the road it's good togo towards them.

There are also html controls which have no relations to web controls, suchas the fileinput and the generic controls...

Karl


--
Alan Silver
(anything added below this line is nothing to do with me)


Nov 19 '05 #6
Well, for starters, HTML controls are small and light weight, while Web
Controls are more feature rich.
Here are more details about the differences:
http://SteveOrr.net/FAQ/3in1.aspx#HTMLvsWeb

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Alan Silver" <al*********@nospam.thanx> wrote in message
news:T+**************@nospamthankyou.spam...
Hello,

ASP.NET newbie here so please be nice ;-)

I'm reading ASP.NET Unleashed, following a recommendation here. I am a
little confused about the difference between HTML controls and web
controls. Obviously there are web controls that don't have any relation to
HTML controls (like the calendar), but the basic web controls that produce
links, labels, etc seem to do the same as the HTML controls (or
vice-versa).

So, what's the difference and why use one over the other?

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #7
>Check out this faq to know difference between HTML control and web controls
http://www.extremeexperts.com/Net/FA...LControls.aspx


Thanks.

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #8
>I only use HtmlControls when there's a specific need (which there certainly
are)...from what I've seen that's typically the approach taken.


Thanks Karl, that's a useful rule. Helps clarify matters when you can
distil it down to something that simple!!

--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #9

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
9
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
17
by: Lloyd Sheen | last post by:
This IDE is driving me nuts. I needed another button so I copied an existing one, changed the Text and the id and position by drag and drop. Well then I run and get the following: Control...
5
by: siaj | last post by:
Hello All, Can any one give me a clue when to use Web Server controls/ HTML server controls/HTML Controls. As I understand .. HTML controls should be used if u dont need to refer it in the code...
4
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
1
by: Beffmans | last post by:
Hi I work with .net 1.1 and i wanted to know the difference between a html table and a <asp:table>? Which one is better for a consistent layout of your asp.net pages? ch Beffmans
12
by: Nathan Sokalski | last post by:
What is the difference between the Page_Init and Page_Load events? When I was debugging my code, they both seemed to get triggered on every postback. I am assuming that there is some difference,...
12
by: Eric Layman | last post by:
Hi, What's the difference between a normal web element: <input type="text" id="txtname" name="txtname" runat="server"> vs webcontrol text box: <asp:Textbox id="username" Columns="10"...
11
by: Paul Brady | last post by:
Apparently, I have been living on the wrong planet. I have written 15 databases in Microsoft Access in the past 10 years, some of which are split, one uses ODBC interface with a SQL server, one...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.