Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript Variable to Server-Side (Classic ASP) Variable

Status
Not open for further replies.

Krus1972

Programmer
Mar 18, 2004
145
US
Does anyone know if it is possible to pass a Javascript variable into a classic ASP variable (i.e. pass it into a server-side variable)?

It is easy to pass a classic ASP variable into a Javascript variable, but, I was wondering if anyone knows how to do it the other way around?


Thanks.
 
No you can't, the ASP code is over and done before javascript even starts.

So;

You will have to submit the page and the value to the server.

OR

Use AJAX methods to POST or GET the value to a URL that can process it.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top