473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Passing a value from a client to a session("Temp")

Hi, friends:

I have an ASP page where an user enter a value and click the submit button.
I want this value to be transfer to a session("temp") within the same page
where I want to call it back from the same ASP page.
Jul 19 '05 #1
3 2356
> I have an ASP page where an user enter a value and click the submit
button.
I want this value to be transfer to a session("temp") within the same page where I want to call it back from the same ASP page.


This doesn't make much sense. So the ASP runs, loads a bunch of client-side
script, and then it's done. So yes, you can use a workaround to set a
session variable without actually refreshing the page (see
http://www.aspfaq.com/2281), but how on earth is that page itself going to
use the session variable? You can't do that without running some ASP code,
and you can't run that page's ASP code without the ASP page reloading. So,
probably the best option is to submit a form, which sets the session
variable and then the rest of the page can load, using the new session
variable that's been stored...
Jul 19 '05 #2
"Arnaldo Martinez" <ma********@mdpls.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi, friends:

I have an ASP page where an user enter a value and click the submit button. I want this value to be transfer to a session("temp") within the same page where I want to call it back from the same ASP page.


Something like this?

<form action="" method="post">
<input type="text" name="test">
<input type="submit" name="Submit" value="Submit">
</form>
<%
Session("test") = Request("test")
Response.write( "<div>Session(""test"")=" & Session("test") & "</div>")
%>
Jul 19 '05 #3
What happened with the sample I posted in active-server-pages Yahoo group?

Ray at work

"Arnaldo Martinez" <ma********@mdpls.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi, friends:

I have an ASP page where an user enter a value and click the submit button. I want this value to be transfer to a session("temp") within the same page where I want to call it back from the same ASP page.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This...
4
by: Nicolás Castagnet | last post by:
Hi, I write this post because I notice a strange behavior related with "Temporary Internet Files" and maybe some of you can help me to understand it. I am working in a web application with...
6
by: spammy | last post by:
Hi all, I have developed a pretty straightforward web app which displays the results of a query in a datagrid. I want to provide a "Download as csv" link, but want to generate this without...
5
by: Diwa | last post by:
Does the "value" type (value as in key-value pair )of "std::map" require a default ctor even if it is not used ? If I comment out Line 1 in the code attached later, i.e remove the default ctor...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
10
by: hall.jeff | last post by:
As a relative new comer to Python, I haven't done a heck of a lot of hacking around with it. I had my first run in with Python's quirky (to me at least) tendency to assign by reference rather than...
21
by: raylopez99 | last post by:
In the otherwise excellent book C# 3.0 in a Nutshell by Albahari et al. (3rd edition) (highly recommended--it's packed with information, and is a desktop reference book) the following statement is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.