Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. multiline text box width

multiline text box width

Scheduled Pinned Locked Moved ASP.NET
designtestingsalesbeta-testinghelp
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samerh
    wrote on last edited by
    #1

    Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

    S P S H S 5 Replies Last reply
    0
    • S samerh

      Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

      S Offline
      S Offline
      SayreCC
      wrote on last edited by
      #2

      Hi, can you post your code? I think its better to use CSS.

      Hope this one can help. Thanks Hi, Please select Good Question if my answer are fit to your Question.

      S 1 Reply Last reply
      0
      • S samerh

        Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

        P Offline
        P Offline
        Perry Holman
        wrote on last edited by
        #3

        Hi guy, The 'nowrap' property won't take effect on the width in % but px. You can set the width of controls in px and the same time set the 'nowrap' property to controls.

        Welcome to www.softwaretree.net! This website is generated completely by static html pages transforming technology. You can find many excellent audio/video tools there!

        S 1 Reply Last reply
        0
        • S SayreCC

          Hi, can you post your code? I think its better to use CSS.

          Hope this one can help. Thanks Hi, Please select Good Question if my answer are fit to your Question.

          S Offline
          S Offline
          samerh
          wrote on last edited by
          #4

          TextMode="MultiLine" Wrap="False" /> i have used both wrap=true and wrap=false. didnt work!!!!!!!!!!!

          1 Reply Last reply
          0
          • P Perry Holman

            Hi guy, The 'nowrap' property won't take effect on the width in % but px. You can set the width of controls in px and the same time set the 'nowrap' property to controls.

            Welcome to www.softwaretree.net! This website is generated completely by static html pages transforming technology. You can find many excellent audio/video tools there!

            S Offline
            S Offline
            samerh
            wrote on last edited by
            #5

            i cannot put width in pixels especially with different users with different resolutions it will mess up the design.

            1 Reply Last reply
            0
            • S samerh

              Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

              S Offline
              S Offline
              Spunky Coder
              wrote on last edited by
              #6

              Try by providing the style value...

              "Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)

              1 Reply Last reply
              0
              • S samerh

                Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

                H Offline
                H Offline
                Herman T Instance
                wrote on last edited by
                #7

                width =95% might not work Better create a class in your css and add CssClass='createdClass' to your TextBox

                In Word you can only store 2 bytes. That is why I use Writer.

                1 Reply Last reply
                0
                • S samerh

                  Hi all, In testing of my web application, the customer has entered in a multi line text box a text from more than 200 letters with no spaces in between words (smart customer Ah!)and i have sat the width in %. When saving the design of the page was corrupted and the width of page became equal the width of the textbox. i have tried wrap property but didnt solve my issue. Still the width of page is affected by width of textbox. Is ther a way that i can prevent page width from growing with textbox width other than putting textbox width in pixels. thanks

                  S Offline
                  S Offline
                  saanj
                  wrote on last edited by
                  #8

                  Fix the text box control's width in pixels not in percentage. It will solve your issue.

                  Either you love IT or leave IT...

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups