C
carlor
Hi there,
I have a situation where I have a textbox that by default only displays 2
rows of text at a time (textbox.rows = 2). On a link button click, I am
supposed to expand the textbox to show all the data it contains but there are
a number of problems to work through:
- the text box is in a table and textbox's width is set to 100%
- a "line" of text could contain a <CR><LF> or could wrap around to the next
line
- the font characteristics may change depending on the client's preferences
So, somehow I need to calculate how many rows are required to display all of
the text without the need for scroll bars and then set the rows property to
that number.
Does anyone have an idea how to handle this? Has anyone done this before?
Thanks,
Carlo.
I have a situation where I have a textbox that by default only displays 2
rows of text at a time (textbox.rows = 2). On a link button click, I am
supposed to expand the textbox to show all the data it contains but there are
a number of problems to work through:
- the text box is in a table and textbox's width is set to 100%
- a "line" of text could contain a <CR><LF> or could wrap around to the next
line
- the font characteristics may change depending on the client's preferences
So, somehow I need to calculate how many rows are required to display all of
the text without the need for scroll bars and then set the rows property to
that number.
Does anyone have an idea how to handle this? Has anyone done this before?
Thanks,
Carlo.