What is customer control and user control?

Answer Posted / gangadhar

Custom controls are controls that are developed by the
developer
or a third party vendor. Custom controls are not provided
along with
.NET.

Difference between Custom Controls and User Controls.

1.User Control is a page file with extension .ascx which
can only be used within
a single application. But custom controls are assemblies
(dll files) that can be
used in multiple applications.

2.User Controls cannot be added to the ToolBox of VS.NET .
To use a user Control with in an
aspx page u have to drag the user Control from the solution
Explorer to designer page.
But Custom Controls can be added to ToolBox of VS.NET.

3.User Controls can be viewed as a sort of generic controls
during the design time.
The proper GUI of user controls can be viewed only during
the run time.
But Custom Controls can be viewed during the design time.

4. User controls are created from existing Webserver and
html server controls .
But a developer who creates custom controls have to render
every thing from the scratch.

5.Since the dll assembly of a custom control is being
used,a custom control developed in C# can be used in a
project developed in VB.NET or any other managed code and
vice versa.
This is not possible with user controls.They are language
spefic

We cannot give any examples for custom controls since they
are developed either by a developer of a third party vendor.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

546


Explain how asp.net different from asp?

553


What’s the difference between asp.net web forms and asp.net mvc?

545


What is state management in .net?

608


How can we register exception filter globally?

585






What are the main requirements for caching?

529


which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites

1668


How do you declare static variable? What is its lifetime?

507


Are cookies client side or server side?

494


Why web api is better than wcf?

551


Can we store object in viewstate?

529


Explain the concept of MVC Scaffolding?

582


In how many ways we can retrieve table records count?

532


Explain the differences between clr & cts?

558


Explain the features that make asp.net more used framework? : asp.net mvc

476