BR problem (Urgent!!)

Results 1 to 3 of 3

Thread: BR problem (Urgent!!)

  1. #1
    Charly Guest

    Default BR problem (Urgent!!)

    I need to transfer data from an access database. I stored data in a field, in which I use BR for an easier reading. But when I transfer the data in the ASP page, the BR doesn&#039t appear, it is replaced by a space. Does someone know if it&#039s possible to transfer data like text including BR or can it only be as a string, and how to do it ? Thanks a lot, this is quite urgent !!!<BR>Bye.

  2. #2
    Join Date
    Dec 1969

    Default RE: BR problem (Urgent!!)

    If you are talking about displaying line feeds when recalling the information from an access database try:<BR>&#060;%<BR>Function FormatStr(String)<BR> on Error resume next<BR> String = Replace(String, CHR(13), "")<BR> String = Replace(String, CHR(10) & CHR(10), "&#060;/P>&#060;P>")<BR> String = Replace(String, CHR(10), "<BR>")<BR> FormatStr = String<BR>End Function<BR>&#037;&#062;<BR>The String with line feeds is: <BR> &#060;%=formatStr((rs.Fields("field_name"))&#037;& #062;

  3. #3
    Charly Guest

    Default Thanks a lot !

    Thanks for your code which does excacly what I wanted. Thanks again !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts