Applying Design-Time Attributes to a Control
Design-time attributes enable you to modify how control properties appear in Design view. Some attributes are applied to the control itself, whereas other attributes are applied to particular properties of a control.
Here is the list of the design-time attributes you can apply to a control:
• DefaultEvent
—
Enables you to specify the default event for a control. When you double-click a control in Visual Web Developer or Visual Studio .NET, an event handler is automatically created for the default event.
• DefaultProperty
—
Enables you to specify the default property for a control. When you open the Property window for a control, this property is highlighted by default.
• PersistChildren
—
Enables you ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.