Maximising a textbox height

S

Sems

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>
 
A

Adrienne Boswell

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">

<snip server side code>

What does the source say (rendered by the browser, no server side)? Have a
URL?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top