473,396 Members | 1,755 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,396 software developers and data experts.

difference between HtmlControls and WebControls?

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" /> ?

Nov 18 '05 #1
4 2812
The first example you gave <img runat="server"> is an HTML control.
The second example you gave <asp:image runat="server" /> is a web control.

HTML controls are quick and small and require little memory. Conversly, web
controls provide more advanced functionality than HTML controls.

If you're an old school HTML web developer then you'll find the HTML
controls to be intuitive and familiar. If you have more of a
Windows/VB/ActiveX background then you're more likely to feel at home with
the extra features that web controls provide.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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" /> ?

Nov 18 '05 #2
Very clear, thanks a lot!
:-)
To make a custom control, it seems that many control developpers inherit
WebControls. What does it add more than inheriting HtmlControl or Control?

Henri

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
The first example you gave <img runat="server"> is an HTML control.
The second example you gave <asp:image runat="server" /> is a web control.

HTML controls are quick and small and require little memory. Conversly, web controls provide more advanced functionality than HTML controls.

If you're an old school HTML web developer then you'll find the HTML
controls to be intuitive and familiar. If you have more of a
Windows/VB/ActiveX background then you're more likely to feel at home with
the extra features that web controls provide.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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" /> ?



Nov 18 '05 #3
HTML controls weren't designed to be extensible.
Therefore, when making your own controls you should inherit from WebControl
or Control.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Very clear, thanks a lot!
:-)
To make a custom control, it seems that many control developpers inherit
WebControls. What does it add more than inheriting HtmlControl or Control?

Henri

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
The first example you gave <img runat="server"> is an HTML control.
The second example you gave <asp:image runat="server" /> is a web control.
HTML controls are quick and small and require little memory. Conversly,

web
controls provide more advanced functionality than HTML controls.

If you're an old school HTML web developer then you'll find the HTML
controls to be intuitive and familiar. If you have more of a
Windows/VB/ActiveX background then you're more likely to feel at home with the extra features that web controls provide.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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" /> ?



Nov 18 '05 #4
Thanks :-)

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> a écrit dans le message de
news:uK*************@TK2MSFTNGP10.phx.gbl...
HTML controls weren't designed to be extensible.
Therefore, when making your own controls you should inherit from WebControl or Control.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Very clear, thanks a lot!
:-)
To make a custom control, it seems that many control developpers inherit
WebControls. What does it add more than inheriting HtmlControl or Control?

Henri

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> a écrit dans le message de
news:%2***************@TK2MSFTNGP12.phx.gbl...
The first example you gave <img runat="server"> is an HTML control.
The second example you gave <asp:image runat="server" /> is a web control.
HTML controls are quick and small and require little memory.
Conversly, web
controls provide more advanced functionality than HTML controls.

If you're an old school HTML web developer then you'll find the HTML
controls to be intuitive and familiar. If you have more of a
Windows/VB/ActiveX background then you're more likely to feel at home

with the extra features that web controls provide.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Henri" <hm********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> 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" /> ?
>
>
>




Nov 18 '05 #5

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

Similar topics

0
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...
0
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...
3
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...
8
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...
4
by: SAI | last post by:
Both have "TextBox" element and "Runat server". I don't understand the difference. Please advise. Thanks.
2
by: Sean Carey | last post by:
I converted a C# Upload app to VB.NET and am down to one error and was hoping someone could help me with te error. I would greatly appreciate help from anyone. Here is the error: ...
2
by: Jeff Johnson [MVP: VB] | last post by:
(Disclaimer: I don't use ASP.NET much, so I could be going in a very odd direction here. Put me on the proper path if I am.) ran into a situation where I needed to replace an asp:CheckBox with a...
3
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:...
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"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.