CreateUserWizardDesigner Class
.NET Framework 3.0
Extends design-time behavior for the CreateUserWizard Web server control.
Namespace: System.Web.UI.Design.WebControls
Assembly: System.Design (in system.design.dll)
System.Web.UI.Design.WebControls Namespace
Walkthrough: Creating a Basic Control Designer for a Web Server Control
Extending Design-Time Support
How to: Extend the Appearance and Behavior of Controls in Design Mode
Assembly: System.Design (in system.design.dll)
The following code example shows how to extend the CreateUserWizardDesigner class and display debugging information on the design surface in case of an error.
using System; using System.IO; using System.ComponentModel; using System.Web.UI.WebControls; using System.Web.UI; using System.Web.UI.Design; using System.Web.UI.Design.WebControls; //using Examples.WebNet.Design; namespace Examples.WebNet { // Create a class that extends CreateUserWizardDesigner. public class MyCreateUserWizardDesigner : CreateUserWizardDesigner { // This variable contains debugging information. private string debugInfo = "Useful information."; // Override the GetErrorDesignTimeHtml method to add some more // information to the error message. protected override string GetErrorDesignTimeHtml(Exception e) { // Get the error message from the base class. string html = base.GetErrorDesignTimeHtml(e); // Append the debugging information to it. html += "<br>" + "DebugInfo: " + debugInfo; // Return the error message. return html; } } }
The following code example shows how to associate a control class with the designer defined in the preceding example.
using System; using System.IO; using System.ComponentModel; using System.Web.UI.WebControls; using System.Web.UI; using System.Web.UI.Design; using System.Web.UI.Design.WebControls; //using Examples.WebNet; namespace Examples.WebNet { // Create a class that extends CreateUserWizard and uses // MyCreateUserWizardDesigner as its designer. [Designer(typeof(Examples.WebNet.MyCreateUserWizardDesigner))] public class MyCreateUserWizard : CreateUserWizard { } }
- SecurityPermission for calling unmanaged code. Demand value: Demand. Permission value: UnmanagedCode
System.Object
System.ComponentModel.Design.ComponentDesigner
System.Web.UI.Design.HtmlControlDesigner
System.Web.UI.Design.ControlDesigner
System.Web.UI.Design.WebControls.CompositeControlDesigner
System.Web.UI.Design.WebControls.WizardDesigner
System.Web.UI.Design.WebControls.CreateUserWizardDesigner
System.ComponentModel.Design.ComponentDesigner
System.Web.UI.Design.HtmlControlDesigner
System.Web.UI.Design.ControlDesigner
System.Web.UI.Design.WebControls.CompositeControlDesigner
System.Web.UI.Design.WebControls.WizardDesigner
System.Web.UI.Design.WebControls.CreateUserWizardDesigner
Reference
CreateUserWizardDesigner MembersSystem.Web.UI.Design.WebControls Namespace
Other Resources
Introduction to ASP.NET Control DesignersWalkthrough: Creating a Basic Control Designer for a Web Server Control
Extending Design-Time Support
How to: Extend the Appearance and Behavior of Controls in Design Mode
Community Additions
ADD
Show: