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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry

    #1

    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="Multi Line", 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.
  • Terry

    #2
    Re: Getting an asp.net TextBox to fill a screen and adjust heightdynamical ly

    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?

    Comment

    • Terry

      #3
      Re: Getting an asp.net TextBox to fill a screen and adjust heightdyna

      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.

      Comment

      • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

        #4
        Re: Getting an asp.net TextBox to fill a screen and adjust height

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

        Comment

        • Terry

          #5
          Re: Getting an asp.net TextBox to fill a screen and adjust height

          Good additional info. Thanks Bruce!

          Comment

          Working...