ChangePasswordDesigner.GetDesignTimeHtml Method

Definition

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

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

Applies to