Converting HTML code into ASP format
hi, everyone, I have this code in HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="0;URL=http://www.yahoo.com">
</head>
<body bgcolor="#FFFFFF">
</body>
</html>
I tried so many things to try to convert the code into ASP format, I mean
when the server reads the ASP code, it should interpret the code as above...
so it will actually send or execute the HTML code which is in the format
of ASP.
I did something like "<html><head><title>Untitled ocument</title>" &_
"<meta http-equiv=&chr(39)&Content-Type&chr(39) .....
but I don't know how to represent " in ASP for the above code...
Thanks!
Re: Converting HTML code into ASP format
Larry:
Try this:
response.write "<html><head><title>Untitled Document</title>"
response.write "<meta http-equiv=""Content-Type"""
response.write "content=""text/html; charset=iso-8859-1"">"
response.write "<meta http-equiv=""refresh"""
response.write "content=""0;URL=http://www.yahoo.com"">"
response.write "</head><body bgcolor=""#FFFFFF""></body></html>"
remember if it is quoted in html and you want to parse it through asp.dll
then you must replace the " with "" it is a string!
Don
"Larry" <larry@levelogic.com> wrote:
>
>hi, everyone, I have this code in HTML:
><html>
><head>
><title>Untitled Document</title>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
><meta http-equiv="refresh" content="0;URL=http://www.yahoo.com">
></head>
><body bgcolor="#FFFFFF">
></body>
></html>
>
>I tried so many things to try to convert the code into ASP format, I mean
>when the server reads the ASP code, it should interpret the code as above...
>so it will actually send or execute the HTML code which is in the format
>of ASP.
>
>I did something like "<html><head><title>Untitled ocument</title>" &_
>"<meta http-equiv=&chr(39)&Content-Type&chr(39) .....
>but I don't know how to represent " in ASP for the above code...
>Thanks!
>
>
Re: Converting HTML code into ASP format
Larry,
You're just trying to redirect right to Yahoo in your example, right? Use
Response.Redirect instead of a Meta Refresh.
<% Response.Redirect "put URL here" %>
Andrew