473,732 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

difference between htmlcontrols and web control.

Hi all,

can anyone tell me difference between htmlcontrols and web controls.

If i have table web control and table html controls which one should i
use. Because i can add runat tag to html controls. so what is exact
difference between these two.

any help will be truely appreciated.

thanks in advance.

Apr 9 '07 #1
5 2073
Many web controls (which, in turn, return HTML to the web browser) have
properties and methods added to them, which are unavailable in their HTML
counterparts. By adding and ID and a Runat=Server to html controls, you
essentially make it a generic html control, without the built in additions
of some of the ASP.NEt Server controls.

I use basic HTML for my tables most of the time, though a few times, I found
that I needed the added functionality of the server controls.

David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com
"archana" <tr************ **@yahoo.comwro te in message
news:11******** *************@n 59g2000hsh.goog legroups.com...
Hi all,

can anyone tell me difference between htmlcontrols and web controls.

If i have table web control and table html controls which one should i
use. Because i can add runat tag to html controls. so what is exact
difference between these two.

any help will be truely appreciated.

thanks in advance.

Apr 9 '07 #2
I've summarized the difference here:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"archana" <tr************ **@yahoo.comwro te in message
news:11******** *************@n 59g2000hsh.goog legroups.com...
Hi all,

can anyone tell me difference between htmlcontrols and web controls.

If i have table web control and table html controls which one should i
use. Because i can add runat tag to html controls. so what is exact
difference between these two.

any help will be truely appreciated.

thanks in advance.
Apr 11 '07 #3
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:2C******** *************** ***********@mic rosoft.com...
I've summarized the difference here:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb
Link is broken...
Apr 11 '07 #4
Seems to be working for me.
Perhaps there was a temporary glitch?

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"Mark Rae" <ma**@markNOSPA Mrae.netwrote in message
news:uG******** ********@TK2MSF TNGP05.phx.gbl. ..
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:2C******** *************** ***********@mic rosoft.com...
>I've summarized the difference here:
http://SteveOrr.net/faq/3in1.aspx#HTMLvsWeb

Link is broken...
Apr 11 '07 #5
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:F8******** *************** ***********@mic rosoft.com...
Seems to be working for me.
Yes, fine now.
Perhaps there was a temporary glitch?
Doubtless.
Apr 11 '07 #6

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

Similar topics

0
3498
by: dh | last post by:
As a simple example, I can't seem to be able to reference a label called "lblOutput" that exists in my test.aspx page from within a User control, TestControl.ascx. I am stumped. Any help is appreciated. Thanks. The error I get when I compile is... "The type or namespace name 'lblOutput' could not be found (are you
0
1356
by: Jill Graham | last post by:
Hi folks, The pages of my website are built dynamically and are based on templates. A template can look like this : <table> <tr><td>This is the page header</td></tr> <tr><td>This is the page content</td></tr> <tr><td>This is the page footer</td></tr>
3
4589
by: Jill Graham | last post by:
Hi folks, The pages of my website are built dynamically and are based on templates. A template can look like this : <table> <tr><td>This is the page header</td></tr> <tr><td>This is the page content</td></tr> <tr><td>This is the page footer</td></tr>
4
2829
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" /> ?
8
2048
by: Alan Silver | last post by:
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).
4
2456
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
3
1914
by: Bob | last post by:
Hi, I 'm starting asp.net and i saw two ways to make buttons. Which way to use? Are the htmlbuttons in specific case better than webbuttons? Are there advantages? Thanks Bob htmlbutton: <script runat="server">
8
1862
by: Nathan Sokalski | last post by:
I have a System.Web.UI.HtmlControls.HtmlInputFile control that I use to submit files. After the file is successfully submitted, I want the field to be reset so that the user knows the file was submitted. However, ASP.NET does not let you change the Value property of an HtmlInputFile control. How can I reset the HtmlInputFile control to it's original state? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
12
3248
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>
0
8946
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
8774
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
9307
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
9235
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
6031
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();...
0
4550
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
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.