Login.LayoutTemplate Property
Assembly: System.Web (in system.web.dll)
[TemplateContainerAttribute(typeof(Login))] public: virtual property ITemplate^ LayoutTemplate { ITemplate^ get (); void set (ITemplate^ value); }
/** @property */ public ITemplate get_LayoutTemplate () /** @property */ public void set_LayoutTemplate (ITemplate value)
public function get LayoutTemplate () : ITemplate public function set LayoutTemplate (value : ITemplate)
Property Value
An ITemplate that contains the template for displaying the Login control. The default value is a null reference (Nothing in Visual Basic).The LayoutTemplate property contains the template that defines how the Login control is displayed to the user.
The following table lists the required and optional controls used in a Login control template.
| ID or command name | Control type | Required/optional |
|---|---|---|
| UserName | Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control. | Required |
| Password | Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control. | Required |
| RememberMe | Optional | |
| FailureText | Any control that implements ITextControl. | Optional |
| Login | Any control that causes event bubbling. | Optional |
The Login control throws an HttpException exception if the layout template does not contain the required controls. No exception is thrown if you give an optional control ID to a control of the wrong type; however, the control is subsequently ignored by the Login control.
The login control can be any control that causes event bubbling, such as Button, LinkButton, or ImageButton. The control's command name property must be set to "Login".
When a template is used for the Login control, only the following properties affect the behavior of the control:
-
All properties inherited from WebControl. (For details, see the Login control members table.)
-
LayoutTemplate.
All other properties are inactive when a template is set for the Login control.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.