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