0

I have a variable that I'm defining in JavaScript:

<script>
  var foo = 5;
</script>

<%  
  For i = foo To 10  
    'do something...
  Next  
%>

Currently the access to foo does not work; how can I access the value? Should I use a form? Please note that I'm using classic ASP not ASP.NET.

1 Answer 1

1

ASP is on server side, and Javascript is on cliente side, you can't do this. You can submit variable value by form.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.