ASP.NET HeightProperty
Style Control
Definition and Usage
The Height property is used to set or return the height of the control.
Syntax
<asp:webcontrol id="id" Height="value" runat="server" />
| Property | Description |
|---|---|
| value | The height of the control. Must be a pixel value, or a percentage value representing the height of the parent object. |
Example
The following example sets the height of the Button control:
<form runat="server">
<asp:Button id="button1" Text="Submit"
Height="50px" runat="server" />
</form>
<asp:Button id="button1" Text="Submit"
Height="50px" runat="server" />
</form>
Show example »
Style Control Other Extensions