|
 |
proasp_howto thread: A Problem with Text Areas
Message #1 by "Chip Dukes" <cdukes77@b...> on Thu, 21 Feb 2002 20:58:12 -0500
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1BE57.1EDE93A0
Content-Type: text/plain;
charset="windows-1252"
Response.Write Server.HTMLEncode(MyCodeSample)
regards
David Cameron
nOw.b2b
dcameron@i...
> -----Original Message-----
> From: Chip Dukes [mailto:cdukes77@b...]
> Sent: Friday, 22 February 2002 12:58 PM
> To: Pro ASP HowTo
> Subject: [proasp_howto] A Problem with Text Areas
>
> I am trying to build a personal database of useful code samples. I store
and view the code samples in/from a database using ASP pages.
>
> There are two problems ...
>
> 1. Of course everything gets stored properly in the database when I paste
the code sample into a text area - but - when I try to reference the code
and display it on a page I have to use the "pre" and "code" tags to make it
display properly and in some cases replace the < and > signs with < ; and
> ; ... this is a problematic solution at best.
>
> 2. The nasty problem comes - when I need to edit the code and pull it back
into a text area ... whatever special tricks I used to force the code to
display properly are lost due to the way the browser interprets the data.
>
> I hope I have described this well enough that someone can understand it
... it's a problem that has nagged me for years. I seem to remember that
Microsoft had a tag that was only valid for IE that addressed this issue.
>
> Has anyone faced and fixed this ...
>
> Chip Dukes
$subst('Email.Unsub').
|
|
 |