Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Formatting data


Message #1 by "Rick Lull" <ricklull@h...> on Tue, 19 Mar 2002 23:03:59
Is there a way to keep the data clean without having a bunch of HTML tags 
mixed in for formatting - but still have paragraph breaks, bold text etc. 
when the data is pulled onto an ASP page?
Message #2 by "Ken Schaefer" <ken@a...> on Wed, 20 Mar 2002 13:18:05 +1100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rick Lull" <ricklull@h...>
Subject: [access_asp] Formatting data


: Is there a way to keep the data clean without having a bunch of HTML tags
: mixed in for formatting - but still have paragraph breaks, bold text etc.
: when the data is pulled onto an ASP page?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

a) Browsers only use HTML to render text. There is no way you can set
display properties using anything else.

b) You're going to have to have *some* kind of markup in your content to
delineate what's a paragraph, or what's in bold etc. For example, a carriage
return-line feed is usually created using ASCII characters 10 and 13. YOu
could store that in the database and do a Replace() when you pull the data
out, so that you can render this properly in the browser.

Cheers
Ken

Message #3 by "Raymond Dalton" <rdalton@c...> on Mon, 25 Mar 2002 15:06:01
*Is there a way to keep the data clean without having a bunch of HTML tags
*mixed in for formatting - but still have paragraph breaks, bold text etc.
*when the data is pulled onto an ASP page?

the <pre></pre> tags will work.  pre stands for preformatted text.  But 
that means that it is preformatted, you can't use any formatting like font 
style, tables, etc...



  Return to Index