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)

public:
property Orientation Orientation {
	virtual Orientation get();
	virtual void set(Orientation value);
}

Property Value

Type: System.Web.UI.WebControls::Orientation

One the Orientation enumeration values. The default is Vertical.

Exception Condition
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
Available since 2.0
Return to top
Show: