J
Jerry C
I am creating a web page that will be printed.
Text is comming from SQL server varchar(xxx) fields.
The text was entered from asp.net textboxes.
The problem is I need to ensure all the text if visible on the page for
printing.
Solution1.
I put the text from the sql server in a textbox. There is one problem the
textbox does on auto size to display all the text. I can write some code to
try to calculate the number of rows in the text and set the multiline and
rows property to open the text box. This is not exact so some of the last
rows can be missing or there are extra blank lines in the textbox
Solution2.
Use a label or Div to display the text since they will autosize. the problem
with this is the line breaks do not work and all the text runs togeather.
The question is how can I display this text so it all displays. This site
does a good job of this. When I look at the page that displays when a post is
double clicked it has been formated and breaks have been inserted any hints
on how this is done.
Or is there a easer way
Thank you
Thank you
Text is comming from SQL server varchar(xxx) fields.
The text was entered from asp.net textboxes.
The problem is I need to ensure all the text if visible on the page for
printing.
Solution1.
I put the text from the sql server in a textbox. There is one problem the
textbox does on auto size to display all the text. I can write some code to
try to calculate the number of rows in the text and set the multiline and
rows property to open the text box. This is not exact so some of the last
rows can be missing or there are extra blank lines in the textbox
Solution2.
Use a label or Div to display the text since they will autosize. the problem
with this is the line breaks do not work and all the text runs togeather.
The question is how can I display this text so it all displays. This site
does a good job of this. When I look at the page that displays when a post is
double clicked it has been formated and breaks have been inserted any hints
on how this is done.
Or is there a easer way
Thank you
Thank you