Converting HTML code into ASP format


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Converting HTML code into ASP format

Hybrid View

  1. #1
    Larry Guest

    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!



  2. #2
    MCSDon Guest

    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!
    >
    >



  3. #3
    Andrew King Guest

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center