Export (0) Print
Expand All

Login.Orientation Property

Gets or sets a value that specifies the position of the elements of the Login control on the page.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

abstract Orientation : Orientation with get, set
override Orientation : Orientation with get, set
<asp:Login Orientation="Orientation" />

Property Value

Type: System.Web.UI.WebControls.Orientation
One the Orientation enumeration values. The default is Vertical.

ExceptionCondition
ArgumentOutOfRangeException

The Orientation property is not set to a valid Orientation enumeration value.

The Orientation property determines whether to display the Login control in a vertical format, with the UserName text entry field above the Password text entry field, or in a horizontal format, with the UserName text entry field next to the Password text entry field.

The following code example shows the effect of changing the Orientation property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2015 Microsoft