[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

To read data from Javascript

Posted on 2004-04-06
3
Medium Priority
?
186 Views
Last Modified: 2010-04-17
Hi

I'm Rags here, Can anybody tell me how can I get a value from javascript  variable to  a ASP  variable


Regards
Rags
0
Comment
Question by:rags_1980
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 23

Accepted Solution

by:
Snarf0001 earned 1000 total points
ID: 10768832
The only way that I'm aware of is to load it into a hidden field so that it goes back to the server in the response.
ie

<script>

var ValueToPass;

function TransferValues()
{
  document.Form1.HoldValues.value = ValueToPass.toString();
  return true;
}
</script>

<form name="Form1" action="somewhere.asp" method="post" onSubmit="return TransferValues();">
  <input type="hidden" name="HoldValues">
</form>
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Progress
Introduction to Processes

650 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