Donate SIGN UP

aspx controls

Avatar Image
kujawski | 13:27 Thu 11th Sep 2008 | Technology
2 Answers
Anyone got any idea how to resize an aspx text box set to (mulltline), automatically as so all text is shown?
Gravatar

Answers

1 to 2 of 2rss feed

Best Answer

No best answer has yet been selected by kujawski. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
I dont think thats easy at all :(

If I *had* to do it, I'd force the box to use a monospaced font, and set the height based on the length of the string divided by the characters per row, multiplied by the number of pixels per line of text. - That is absolutely *horrible* though.
Question Author
Hi, thanks for that,

i did try it that way, but the clients wants Arial as a font, plus the data includes cr/lf's which are a bit of a pain aswell.

but eventually did get around it, by using a label with height=null, seeing as its just required to display it.

many thanks anyway!

1 to 2 of 2rss feed

Do you know the answer?

aspx controls

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.