For instance, when should I use HtmlControls.Ht mlImage,
and when should I use WebControls.Ima ge ?
And what is the difference between
<img runat="server" />
and
<asp:image runat="server" /> ? 4 2827
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********@hot mail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. For instance, when should I use HtmlControls.Ht mlImage, and when should I use WebControls.Ima ge ?
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.ne t> a écrit dans le message de
news:%2******** *******@TK2MSFT NGP12.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********@hot mail.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. For instance, when should I use HtmlControls.Ht mlImage, and when should I use WebControls.Ima ge ?
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********@hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.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.ne t> a écrit dans le message de news:%2******** *******@TK2MSFT NGP12.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********@hot mail.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. For instance, when should I use HtmlControls.Ht mlImage, and when should I use WebControls.Ima ge ?
And what is the difference between <img runat="server" /> and <asp:image runat="server" /> ?
Thanks :-)
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> a écrit dans le message de
news:uK******** *****@TK2MSFTNG P10.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********@hot mail.com> wrote in message news:%2******** *******@TK2MSFT NGP11.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.ne t> a écrit dans le message de news:%2******** *******@TK2MSFT NGP12.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********@hot mail.com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. > For instance, when should I use HtmlControls.Ht mlImage, > and when should I use WebControls.Ima ge ? > > 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 appreciated.
Thanks.
The error I get when I compile is...
"The type or namespace name 'lblOutput' could not be found (are you
|
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>
|
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>
|
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).
|
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:
c:\inetpub\wwwroot\admin\filemanager.aspx.vb(76): Expression is of
type 'System.Web.UI.HtmlControls.HtmlInputFile', which is not a
collection type.
|
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
regular INPUT type="checkbox" control. Specifically, it is declared thus:
<input ID="chkActive" Runat="server" class="CheckBox" />
This is inside an <EditItemTemplate> in a template column in a datagrid.
When the user enters edit mode, I want...
|
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">
|
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: 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,...
|
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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |