Re: Response.Write
by Doug Miles <douglas_miles(at)yahoo.com>
|
Date: |
Thu, 05 Oct 2000 10:50:13 -0500 |
To: |
ches <ches(at)io.com> |
Cc: |
"hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org> |
References: |
yahoo |
|
todo: View
Thread,
Original
|
|
At 09:55 AM 10/5/00 -0500, ches wrote:
>If I want to change the following in an asp page, what else do I have to
>add to make sure the quotes are not read as part of the write statement
>but only part of the html?
>
>Response.Write("<Center>")
>Response.Write("<Font color=red>")
>
>
>to
> Response.Write("<Div align="Center">")
> Response.Write("<span style="color: red;">")
>--
>Sincerely,
>Franchesca
>ches(at)io.com
One way is to double-up any embedded quote. This is the method I prefer.
Response.Write("<Div align=""Center"">")
Alternately, you could do it by concatenating several string segments
Response.Write("<Div align=" & chr(34) & "Center" & chr(34) & ">")
Hope this helps,
--Doug
_________________________________________________________
Do You Yahoo!?
Get your free (at)yahoo.com address at http://mail.yahoo.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA