p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: onLoad & sessions


Message #1 by Sander Baaij <Sander.Baaij@i...> on Thu, 8 Jun 2000 11:14:33 +0200
Hi Sander!!

Try assigning new value to session object before the page in frame is
displayed.

for eg :

<%session("xyz")= newvalue %>
<frame .....>

Hope this solves ur problem.

Regds,

yog

> -----Original Message-----
> From: Sander Baaij 
> Sent: Thursday, June 08, 2000 2:45 PM
> To: How To
> Subject: [proasp_howto] onLoad & sessions
>
>
> I have an odd problem. I always assumed that asp was parsed
> before HTML and
> looong before any client-side scripts were run. If this is the case then
> explain this:
>
> I run a database query and I place the result in a sessionobject. This
> works.
> The same page also has a <body
> onLoad="window.parent.Content.location.href='OtherPage.asp'">.
> Content is another frame. That OtherPage.asp uses the
> sessionobject to show
> a few items.
>
> Now comes the strange part: the "otherpage.asp" shows the items from the
> PREVIOUS values of the sessionobject.
> It's like it uses the sessionobject even before it gets replaced
> by the new
> results.
>
> Has anybody heard or seen such a thing before and know of a way
> to fix/avoid
> it?
>
>
> Thanks,
>
> Sander Baaij
>
>

  Return to Index