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) 8 2048
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*********@no spam.thanx> wrote in message
news:T+******** ******@nospamth ankyou.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)
Alan,
They inherit from different classes and have different sets of members.
Eliyahu
"Alan Silver" <al*********@no spam.thanx> wrote in message
news:T+******** ******@nospamth ankyou.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)
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)
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*********@no spam.thanx> wrote in message
news:$b******** ******@nospamth ankyou.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)
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******** ******@TK2MSFTN GP14.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*********@no spam.thanx> wrote in message news:$b******** ******@nospamth ankyou.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)
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*********@no spam.thanx> wrote in message
news:T+******** ******@nospamth ankyou.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)
>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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 software giant such as Microsoft SQL
Server, Oracle, and Sybase?
Is PostgreSQL reliable enough to be used for high-end commercial
application? Thanks
|
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 the span tag
itself contain table tags within it?
I have some scripting code and when I wrap the span in table elements
it does not find the html within the span. Here is an example....
<tr><td colspan="4" align="left"><span...
|
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 'Button19' of type 'Button' must be placed inside a form tag with
runat=server
Can the IDE not do what it is supposed to do. It seems that it is a fight
to make it do anything or did I do something wrong? It would seem silly to
have to create a...
|
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 behind
a(simply bcaz it is not recognized in the code behind IDE) and it does not
make a server trip.
HTML server Controls should be preferred over Web Server controls as they
are light weight than ASP.NET web Server controls.(If they have same...
|
by: SAI |
last post by:
Both have "TextBox" element and "Runat server". I don't understand the
difference. Please advise. Thanks.
| |
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
|
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, and I would like to know what
it is so that I can take advantage of it in my code. Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
|
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" runat="server">
</asp:TextBox>
|
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 has a many-to-many relationship, and all of which have
Basic code to handle events and run functions which I have coded, and
all this time have never heard of .Net -- until today.
So, I looked it up on Google, asking for Access and .Net and
got...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |