PC Review


Reply
Thread Tools Rate Thread

Control versus WebControl

 
 
shapper
Guest
Posts: n/a
 
      26th May 2007
Hello,

I am creating a Generic.List(Of ...) to hold a few controls.

What is the difference between Control and WebControl in Asp.Net?
Which one should I use?

Thanks,

Miguel

 
Reply With Quote
 
 
 
 
caffienerush@gmail.com
Guest
Posts: n/a
 
      26th May 2007
On May 26, 1:29 pm, shapper <mdmo...@gmail.com> wrote:
> Hello,
>
> I am creating a Generic.List(Of ...) to hold a few controls.
>
> What is the difference between Control and WebControl in Asp.Net?
> Which one should I use?
>
> Thanks,
>
> Miguel


All asp server controls (like TextBox) inherits directly or indirectly
from WebControl and WebControl inherits from Control.
All html server controls (like HtmlInputText) inherits directly or
indirectly from HtmlControl and HtmlControl inherits from Control.

I would use WebControl if I was only using asp server controls but use
Control if I was dealing with html server controls as well.

Andy

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Web.UI.WebControl.Table Control Sonu.NET Microsoft ASP .NET 5 6th Sep 2006 12:10 AM
ASP.NET WebControl Based off of the Calendar Control =?Utf-8?B?c21pbGx5?= Microsoft C# .NET 2 18th Aug 2005 02:40 AM
WebControl/Cache-control question... =?Utf-8?B?TmFkYXY=?= Microsoft ASP .NET 1 14th Mar 2005 02:46 PM
WebControl/Cache-Control question =?Utf-8?B?TmFkYXY=?= Microsoft C# .NET 2 13th Mar 2005 05:00 AM
Set webcontrol properties before control is rendered? =?Utf-8?B?UG9rZXJKb2tlcg==?= Microsoft ASP .NET 1 2nd Oct 2004 02:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:55 AM.