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. how to fix textbox size using "%" [modified]

how to fix textbox size using "%" [modified]

Scheduled Pinned Locked Moved ASP.NET
helpdockertutorialquestion
2 Posts 2 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
    Sreekumar P P
    wrote on last edited by
    #1

    hi i have a text box that gets its text vlaue after a postback. However, if the text is of a long string, my textbox too growing with text. how to fix it static but with a "%" unit. ---- ----- Initial display is fine. But after a round trip it changes based on the size of the text assinged. txtCommitteeNameMYS.Text = e.Item.Cells[3].Text; It is perfect when the textbox Text is having a small string value like "ABC COMMITTEE". But if the text is bit long like "COMMITTEE FOR HUMAN RIGHTS VIOLATION TOWARDS WOMEN & CHILDERN", text box also grows with no wrap to the text. I want my textbox width to have a 100% fit in the 22% td of its container table. Strange -- noticed that the problem is not available if direction is RTL.. any idea ?? Sreekumar PP -- modified at 10:57 Saturday 30th September, 2006

    A 1 Reply Last reply
    0
    • S Sreekumar P P

      hi i have a text box that gets its text vlaue after a postback. However, if the text is of a long string, my textbox too growing with text. how to fix it static but with a "%" unit. ---- ----- Initial display is fine. But after a round trip it changes based on the size of the text assinged. txtCommitteeNameMYS.Text = e.Item.Cells[3].Text; It is perfect when the textbox Text is having a small string value like "ABC COMMITTEE". But if the text is bit long like "COMMITTEE FOR HUMAN RIGHTS VIOLATION TOWARDS WOMEN & CHILDERN", text box also grows with no wrap to the text. I want my textbox width to have a 100% fit in the 22% td of its container table. Strange -- noticed that the problem is not available if direction is RTL.. any idea ?? Sreekumar PP -- modified at 10:57 Saturday 30th September, 2006

      A Offline
      A Offline
      Arjune
      wrote on last edited by
      #2

      Please check whether all other TDs have their width specified.If all TDs have proper width summing up to 100 then this problem will not exist.

      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