473,326 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Getting an asp.net TextBox to fill a screen and adjust heightdynamically

I am trying to figure out if there is a way to get a regular asp.net
TextBox to fill the screen, both height and width. When I drop a
TextBox onto a blank asp.net page and set the height="100%",
width="100", and the TextMode="MultiLine", the TextBox will fill the
width of the page, and will adjust the width dynamically as the page
changes size, but the height of the textbox is not full screen as I
would like. It remains at 2 lines high.

Is there a way to get the height of a textbox to fill the screen, and
adjust its size automatically when the screen size changes? Thanks.
Feb 20 '08 #1
4 2605
So does that mean it is not possible to set the TextBox height so that
it will be full screen, and automatically adjust when the page size is
changed?

Ultimately what I'm trying to do is create a page very similar to an e-
mail inbox page, with a grid on the top half of the screen, a splitter
bar, and a TextBox at the bottom that always fills the bottom half of
the page, even when the splitter bar is adjusted. I was hoping I
could do this with a TextBox on the bottom. Any suggestions?
Feb 20 '08 #2
Thanks Bruce! That that worked exactly as I had hoped.

I did find that the "onresize" event in the body element is not valid
for XHTML Transitional markup. I took out the DOCTYPE reference to
test your code, and it worked. I'll probably have to find a work-
around for the onresize event if I want my web page to enforce XHTML
Transitional.

Thanks again.
Feb 20 '08 #3
xhtml has no replacement (it just depicated, not removed), but its a valid
event for html 4.0/ 5.0/ xhtml2 (undepicated if htmlelement).
-- bruce (sqlwork.com)
"Terry" wrote:
Thanks Bruce! That that worked exactly as I had hoped.

I did find that the "onresize" event in the body element is not valid
for XHTML Transitional markup. I took out the DOCTYPE reference to
test your code, and it worked. I'll probably have to find a work-
around for the onresize event if I want my web page to enforce XHTML
Transitional.

Thanks again.
Feb 20 '08 #4
Good additional info. Thanks Bruce!
Feb 21 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark.Larsen | last post by:
I'm still looking for a way to adjust the vertical location of the text in a TextBox without overriding the OnPaint. Any ideas?
2
by: Dmitri Shvetsov | last post by:
Hi, I'm using these strings around DataGrid <div ID="div1" style="LEFT: 4px; OVERFLOW: auto; WIDTH: 100%; POSITION: absolute; TOP: 248px; HEIGHT: 300px"> ....datagrid... </div>
0
by: Thread77 | last post by:
Hello I'm new to ASP.NET and am working on a web page where I have several textboxes that are bound to a table in a dataset. I'm able to query my SQL database, use a SQLAdapter to fill the table...
7
by: Sandy | last post by:
Hello - I have a form that when submitted checks the database and if the username is already taken, a label shows indicating same. I need to make that label NOT visible after the user clicks...
6
by: Scott Kilbourn | last post by:
Hi, I'm writing a control that inherits from TextBox. I need to adjust the width of this control based on the number of characters in the control. I'm having a hard time with this. The...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
3
by: steve | last post by:
Hi All I have textboxes within a TableLayoutpanel and I want to be able to position an independant control adjacent to a selected textbox This independent control allows selection of text to...
1
by: Alec MacLean | last post by:
Hi, Outline of problem: I've built a set of user controls that are used to output questions for a survey and gather the responses using simple radio buttons. I'm adding an optional textbox...
0
by: dan | last post by:
Hi, I have a multi-line textbox in a gridview when in edit mode. The textbox (rendered as textarea in browser) set cols to 20 by default. I'd like the textbox to 'adjust' itself to the width...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.