Home > Definition > .NET > What is user control and Custom control in asp.net?

What is user control and Custom control in asp.net?

by Narain_Siddharth   on Dec 15, 2011   Category: .NET   |  Views: 56    |  Points: 25   |  Silver 




User control :

Using existing server and html controls, we can able to create the user controls. it can't be added in the toolbox. User controls can be used in a single application. The actual view of user control can be displayed at run time. ".ascx" is the extension of user controls. we need to drag the control from solution into .aspx page while using the user controls in the page.

Custom Control :

Creating Custom controls are not easy while comparing user controls but we can use custom controls for multiple projects and it can be added in the toolbox also. The actual view of custom control can be displayed at development time, so it would be easy to design the page. Custom controls are not language based we can use the C# written custom controls in VB.NET projects. But we can't use user controls like this.

Like this definition? Bookmark and Share:

  User Responses | Post Definition
 No Response found!
  Recent Posts
* what is bubbled event in .NET? (483) by Shiva on May 4 2011 1:09AM
* What is a satellite assembly in .NET? (597) by Shiva on May 4 2011 12:22PM
* What is viewstate in ASP.NET? (1000) by Narain_Siddharth on May 8 2011 4:27AM
* What does SOAP stands for? (364) by Spidy on May 17 2011 5:30AM
* What does WSDL stands for? (350) by Spidy on May 17 2011 5:31AM
  Submit feedback about this definition
Please sign in to post feedback