Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Tuesday, August 22, 2006

Developing and Authoring ASP.NET Custom Controls

This section of the QuickStart demonstrates how advanced developers can write their own ASP.NET server controls that work within the ASP.NET page framework. By writing your own custom ASP.NET server controls, you can encapsulate custom user interface and other functionality in controls that can be reused on ASP.NET pages. The QuickStart provides an introduction to authoring custom controls through hands-on examples. For more information about control authoring, see Developing ASP.NET Server Controls in the Microsoft .NET Framework SDK documentation.
Note: The controls described in this section might not work correctly at design time in a forms designer such as Microsoft Visual Studio .NET, although they work properly at run time on ASP.NET pages. To work in a designer, a control needs to apply design-time attributes not described here. For details about the design-time attributes you need to apply, see Design-Time Attributes for Components in the SDK documentation.

Developing a Simple Custom Control
Defining Simple Properties
Defining Class Properties
Retrieving Inner Content
Developing a Composite Control
Handling Events in a Composite Control
Raising Events from a Composite Control
Maintaining State
Developing a Custom (Non-Composite) Control that Handles Post-back Data
Generating Client-side JavaScript for Custom Post-back
Developing a Templated Control
Developing a Templated Databound Control
Overriding Control Parsing Defining a Custom Control Builder

, , , , ,

Post a Comment