English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Essentially I have a variable named "strfile" that is in Javascript. I need to access this variable or "make it available to be used" by ASP. The Javascript and ASP code is all in the same page.

2007-02-19 04:12:00 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

The easiest way is to set the value of the JavaScript variable to a hidden input field.



Then in your JavaScript, simply say:

document.getElementById ('strfile').value = strfile;

When you submit the form, the page that receives the submit action (could be the same or a different page), the strfile variable will be available in ASP as request.form("strfile")

2007-02-19 04:17:50 · answer #1 · answered by Rex M 6 · 0 0

in line with probability this would grant you a sprint. To get the whole question string: <% the_name = Request.QueryString() ' Your var cost %>
<%
Dim the_name
the_name = Request.QueryString()
Response.write("the name is " & the_name)
Response.write("")
%>


Hope this helps.

2007-02-19 04:31:56 · answer #3 · answered by f0vela 2 · 0 1

fedest.com, questions and answers