By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

pass value from Javascript to asp page

P: n/a
I have one asp page with javascript to begin. In the Javascript, I have
drop down list value. How can I passdrop value to asp page easily? For
example, if the user selects the value, the asp page will refresh itself
with the new value right away. Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 17 Feb 2004 14:50:02 GMT, eddie wang <ew***@kmg.com> wrote:
I have one asp page with javascript to begin. In the Javascript, I have
drop down list value. How can I passdrop value to asp page easily? For
example, if the user selects the value, the asp page will refresh itself
with the new value right away. Thanks.


Either submit the value as part of a form, or append the value to the URL:

window.location = 'somePage.asp?list=' + dropValue;

The former is preferred as it should work on JavaScript-disabled browsers,
other circumstances willing.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2

P: n/a
Thanks for the reply. Can I store the value in cookies and retrive it
then?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #3

P: n/a
On 17 Feb 2004 17:00:17 GMT, eddie wang <ew***@kmg.com> wrote:
Thanks for the reply. Can I store the value in cookies and retrive it
then?


Certainly, as long as the user allows cookies.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.