Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2011-05-12
4
Medium Priority
?
274 Views
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;url=http:www.google.com">

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?
0
Comment
Question by:Lico_w
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 35747696
assuming this variable has been set, it would be something like:

<%
paramStr = "param1=val1&param2=val2"
%>
<meta http-equiv="refresh" content="5;url=http:www.google.com?<%=paramStr%>">

0
 
LVL 34

Expert Comment

by:Big Monty
ID: 35747705
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%>
0
 

Author Closing Comment

by:Lico_w
ID: 35752423
Thanks man, appreciate the help!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

564 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