How can we create custom controls in ASP.NET?

How can we create custom controls in ASP.NET?

Custom controls are user defined controls. They can be created by grouping existing controls, by deriving the control from System.Web.UI.WebControls.WebControl or by enhancing the functionality of any other custom control. Custom controls are compiled into DLL’s and thus can be referenced by as any other web server control.

Basic steps to create a Custom control:

1. Create Control Library
2. Write the appropriate code
3. Compile the control library
4. Copy to the DLL of the control library to the project where this control needs to be used
5. The custom control can then be registered on the webpage as any user control through the @Register tag.
What is an application domain? - ASP.NET
What is an application domain? - It's a way in CLR to maintain a boundary between various applications to ensure....
ASP.NET - Different types of remote object creation mode in .NET
Different types of remote object creation mode in .NET - Ways in which object can be created using Remoting...
ASP.NET - Explain Singleton architecture of Remoting.
Answer for the question - Explain Singleton architecture of Remoting....
Post your comment