What is different between User Control and Web Control and
Custom Control?

Answer Posted / prabhakar.

A user control is made up of existing controls. It is also
sometimes referred to as a composite control because of this
fact. A typical example is a login form. The form and all of
the logic is contained within this 'reuseable' user control.

A custom control is a control that you create. In windows
forms this means overriding the OnPaint method as in your
example above. Custom controls do not have the same level of
design time support as user controls do (ie dragging and
dropping existing controls, etc). Custom controls are
generally thought of as reuseable components that can be
added to the toolbox of visual studio, so they would have
more generic functionality to fit across projects (e.g. a
round button).

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is viewstart page in mvc?

568


What are the possible razor view extensions?

563


What is the meaning of unobtrusive javascript?

550


Explain Sections is ASP.Net MVC?

584


Can you explain model, controller and view in mvc?

561






What is difference between html.beginform and ajax.beginform?

599


how do you truncate a table using entity data model?

582


Possible ways to prevent xss attacks on mvc application?

571


What is the difference between partial and renderpartial?

493


What is .net framework & its benefits?

510


What is entity framework used for?

512


What is namespace of asp.net mvc?

593


Explain dependency resolution?

611


what is code first approach?

578


Is entity framework slow?

512