Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > difference between HtmlControls and WebControls?

Reply
Thread Tools

difference between HtmlControls and WebControls?

 
 
Henri
Guest
Posts: n/a
 
      05-17-2004
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" /> ?



 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      05-17-2004
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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" /> ?
>
>
>



 
Reply With Quote
 
 
 
 
Henri
Guest
Posts: n/a
 
      05-18-2004
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]" <(E-Mail Removed)> a écrit dans le message de
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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" /> ?
> >
> >
> >

>
>
>




 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      05-18-2004
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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]" <(E-Mail Removed)> a écrit dans le message de
> news:%(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > 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" /> ?
> > >
> > >
> > >

> >
> >
> >

>
>
>



 
Reply With Quote
 
Henri
Guest
Posts: n/a
 
      05-18-2004
Thanks

"Steve C. Orr [MVP, MCSD]" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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]" <(E-Mail Removed)> a écrit dans le message de
> > news:%(E-Mail Removed)...
> > > 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" <(E-Mail Removed)> wrote in message
> > > news:%(E-Mail Removed)...
> > > > 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" /> ?
> > > >
> > > >
> > > >
> > >
> > >
> > >

> >
> >
> >

>
>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between htmlcontrols and web control. archana ASP .Net 5 04-11-2007 06:31 PM
HtmlControls.HtmlInputFile and WebControls.Button click event bcumminsr@yahoo.com ASP .Net 4 08-01-2006 10:27 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
WebControls and HtmlControls Abhishek Srivastava ASP .Net 0 05-12-2004 06:13 AM
Difference between HtmlControls and server controls Gopal Prabhakaran ASP .Net 1 01-26-2004 02:03 PM



Advertisments