ChangePasswordDesigner.GetDesignTimeHtml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the markup that is used to render the associated control at design time.
Overloads
GetDesignTimeHtml() |
Gets the markup that is used to render the associated control at design time. |
GetDesignTimeHtml(DesignerRegionCollection) |
Gets the markup that is used to render the associated control at design time and populates a collection of designer regions. |
GetDesignTimeHtml()
Gets the markup that is used to render the associated control at design time.
public:
override System::String ^ GetDesignTimeHtml();
public override string GetDesignTimeHtml ();
override this.GetDesignTimeHtml : unit -> string
Public Overrides Function GetDesignTimeHtml () As String
Returns
A String containing the markup used to render the ChangePassword at design time.
Remarks
The GetDesignTimeHtml method sets the mode of the associated ChangePassword control, which can be a copy, to the current mode of the actual control. Next, it forces the child controls to be recreated, and then calls the base method to generate the markup. If an error occurs, the GetDesignTimeHtml calls the GetErrorDesignTimeHtml method to generate the markup for a placeholder.
Notes to Inheritors
If you override the GetDesignTimeHtml() method, be sure to call the base method, because it eventually calls on the ChangePassword control or a copy of the control to generate the markup.
See also
- ChangePassword
- GetDesignTimeHtml()
- Introduction to ASP.NET Control Designers
- Walkthrough: Creating a Basic Control Designer for a Web Server Control
Applies to
GetDesignTimeHtml(DesignerRegionCollection)
Gets the markup that is used to render the associated control at design time and populates a collection of designer regions.
public:
override System::String ^ GetDesignTimeHtml(System::Web::UI::Design::DesignerRegionCollection ^ regions);
public override string GetDesignTimeHtml (System.Web.UI.Design.DesignerRegionCollection regions);
override this.GetDesignTimeHtml : System.Web.UI.Design.DesignerRegionCollection -> string
Public Overrides Function GetDesignTimeHtml (regions As DesignerRegionCollection) As String
Parameters
- regions
- DesignerRegionCollection
A DesignerRegionCollection to which a definition of the current view of the associated control has been added.
Returns
A String containing the markup used to render the ChangePassword at design time.
Remarks
The GetDesignTimeHtml(DesignerRegionCollection) method calls the GetDesignTimeHtml() method to generate the markup for the design-time rendering of the ChangePassword control. It also adds a DesignerRegion object to the regions
parameter that describes the current view of the ChangePassword control.
Notes to Inheritors
If you override the GetEditableDesignerRegionContent(EditableDesignerRegion) method, be sure to call the base method, because it eventually calls on the ChangePassword control or a copy of the control to generate the markup.
See also
- ChangePassword
- EditableDesignerRegion
- DesignerRegionCollection
- Introduction to ASP.NET Control Designers
- Walkthrough: Creating a Basic Control Designer for a Web Server Control