What is customer control and user control?



What is customer control and user control?..

Answer / 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

More ASP.NET Interview Questions

What is the difference between viewstate and hidden field in asp.net?

0 Answers  


About Usage of server variables ?

2 Answers   Cognizant, CTS,


Input:http://www.allinterview.com/forms/questionform.php Output:http://www.allinterview.com/forms/questionform Write c# program to get the above desired output for the given Input.....

3 Answers   Bally Technologies,


What are the event handlers that we can have in global.asax file?

0 Answers  


How do u deploy your asp.net application?

0 Answers  






What is fulltrust?

0 Answers  


What is global.asax file used for?

0 Answers  


I have a datagrid of 10 rows and I am updating the fifth row using template column edit. How wil u know that the row is updated, so that it can be send to database for updating the respective table?

3 Answers  


They mostly asked difference between versions of technologies

0 Answers   Mphasis,


What is the difference between ASP Session State and ASP.Net Session State?

0 Answers  


What is the difference between Hash table and Array list?

0 Answers  


What is strong-typing versus weak-typing? Which is preferred? Why?

2 Answers  


Categories