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" /> ? 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" /> ?
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" /> ?
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" /> ?
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" /> ? > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
by: SAI |
last post by:
Both have "TextBox" element and "Runat server". I don't understand the
difference. Please advise. Thanks.
|
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:
...
|
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...
|
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:...
|
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"...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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,...
| |