What is the difference between a custom control and a user control ?

Sno
User Control

Custom Control

1

Is a file with the .ascx extension

Is a file with the .dll extension

2

Can be
only used with the application

Can be
used in any number of applications

3

Language
dependent.

They are
language independent, a control
created in c# can be used in vb.net

4

Can’t be
added to Visual studio Toolbox

Can be added to Visual studio Toolbox

5

Inherits
from Server controls and easy to create.

You have
to develop from scratch ,
so comparatively
difficult.

6

Generally
used for static content

Used when
dynamic content is required

0 comments:

Post a Comment