Posted by Sems on 10/15/07 02:30
I've got the following simple aspx page. When the page is loaded the
browser isn't set to full size (set in the linking buttons query
string). When I maximise the window the textbox (tbxComment) expands
to 100% of the pages width. However I'm having problems getting it to
expand to 100% of the page height (I still want the buttons to be
displayed below the textbox however). Whats the best way to do this?
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server" style="height:100%">
<asp:TextBox ID="tbxComment" runat="server" Width="100%"
Mode="MultiLine" Height="300px"></asp:TextBox>
<table style="width: 200px" align="center" >
<tr>
<td>
<asp:Button ID="btnDone" runat="server"
Text="Done" OnClick="btnDone_Click" Width="80px" /></td>
<td style="width: 60px">
<asp:Button ID="btnCancel" runat="server"
Text="Cancel" Width="80px" OnClick="btnCancel_Click" /></td>
</tr>
</table>
</form>
</body>
</html>
[Back to original message]
|