How do I use my VBScript Variable in my HTML code?

Posted on 2011-05-12
Last Modified: 2012-05-11
I have a meta redirect value on my html page (to redirect after 5 seconds) for example:

<meta http-equiv="refresh" content="5;">

however I would like to append some params to the end of the URL. These params are stored in a variable called paramStr and it's created in VBScript.

How do I add these on?
Question by:Lico_w
    LVL 32

    Accepted Solution

    assuming this variable has been set, it would be something like:

    paramStr = "param1=val1&param2=val2"
    <meta http-equiv="refresh" content="5;<%=paramStr%>">

    LVL 32

    Expert Comment

    by:Big Monty
    You can embed server side code directly within html as long as its surrounded by <% %>

    with that in mine, <%=strParam%> is the same as <%Response.Write strParam%>

    Author Closing Comment

    Thanks man, appreciate the help!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
    The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now