Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 8th, 2006, 10:33 PM
Registered User
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to janice.koay Send a message via Yahoo to janice.koay
Default How To Assign Value To Session Using Javascript

I would like to assign a value to Session using javascript.
Is it possible?

example: Session("Id") = document.getElementById("id").value;
Old May 9th, 2006, 12:59 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi janice,

You can't do that directly. However, you can share variables by a combination of ASP, JavaScript and plain HTML forms. Take a look at my first post in this thread for more information:



Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign Session variable from view or controller Alaphat ASP.NET 2.0 Professional 2 April 11th, 2008 09:37 AM
how do you assign php to a row value in javascript RJ2001 Javascript How-To 0 August 13th, 2007 04:32 PM
How to assign javascript to Java? salahu Pro JSP 1 August 8th, 2005 03:05 PM
How to assign javascript value to java? salahu JSP Basics 1 June 27th, 2005 03:34 PM
Assign value from DataReader to session?? tryston02 ASP.NET 1.0 and 1.1 Basics 7 November 18th, 2004 05:07 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.