Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Passing a value from a client to a session("Temp")

Reply
Thread Tools

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

 
 
Arnaldo Martinez
Guest
Posts: n/a
 
      10-16-2003
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.


 
Reply With Quote
 
 
 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      10-16-2003
> 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...


 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      10-16-2003
What happened with the sample I posted in active-server-pages Yahoo group?

Ray at work

"Arnaldo Martinez" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF client passing 2 client authentication tokens? Markus Leder ASP .Net Web Services 1 04-14-2010 10:36 AM
passing asp string value to client side javascript Brendan ASP General 6 09-11-2007 06:34 PM
Passing a value from server side to client side kimberly.walker@consultant.com ASP .Net 4 07-13-2006 09:07 AM
Passing by const & and returning a temp vs passing by value and returningit Victor Bazarov C++ 25 03-23-2005 04:24 PM
Passing Value to Client jmullins47 ASP .Net 0 09-13-2004 08:03 PM



Advertisments