ASP.NET Height Property
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" />
Value | Description |
---|---|
string | The height of the control. It can be a pixel value, or a percentage of the height of the parent object. |
Example
This example sets the height of the button control:
<form runat="server"> <asp:Button id="button1" Text="Submit" Height="50px" runat="server" /> </form>
Example
- Set the Height of the Button Control