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
What is the .net framework and how does it work?
What is edm in entity framework?
Is it possible to unit test an mvc application without running the controllers in an asp.net process?
what is entityclient?
what is split entity?
Difference between ASP.NET MVC and ASP.NET WebForms?
What are child actions in ASP.Net MVC?
Can a view be shared across multiple controllers? If yes, how we can do that?
What are the advantages of asp.net mvc?
What is tempdata?
Explain what is asp.net mvc?
Explain tempdata in asp.net mvc?
What is mvc entity framework?
What are scaffold templates in mvc?
Explain linq to entities? : Entity framework