Their are two types of defined controls in ASP.NET allows which allows the users to create controls.
User controls
Custom controls
User Controls
User control are combination of controls which works as ASP.NET pages or web forms and they are derived from the system.Web.UI.USERControl class.
User controls have the following characteristics:
user contols have an .ascx extension.
, , or tags may not carried by user controls.
Rather then having a Page directive user controls have a Control directive.
Custom Controls
Custom controls are deployed as individual assemblies. They are compiled into a Dynamic Link Library (DLL) and used as any other ASP.NET server control. They could be created in either of the following way:
By deriving a custom control from an existing control
By composing a new custom control combing two or more existing controls.
By deriving from the base control class.
We can create controls from the toolbox by just drag and dop it or by writing code into the designer file
0 Comment(s)