View Single Post
  #104 (permalink)  
Old October 17th, 2008, 10:38 PM
beajow2003 beajow2003 is offline
Registered User
Join Date: Oct 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Got the same problem: Session vars disappear!

Using trace="on", could see session vars on page load but on post back all session vars gone! Didn't show up until switched from 1.x to 2.0

Took awhile but I did find the cause. Not in the vb source's in one of the asp:image... tags! Two ways to fix or work-around:

1) Remove or comment out asp:image tag
   (just ones with missing imageURL should do)
2) Add imageURL="valid link" to asp:image tags (if missing)

To test, deleted almost all code in the code behind. Except for setting about 5 session vars on page load and one in post back.
I didn't try imageURL with an invalid link to see if that blows-up all the session vars too, geez, I hope not.

In original 1.x version the imageURL fragment was set in code. At design time, the imageURL was left blank. This didn't affect the session vars as it seems to do now under 2.0

If I may politically digress, hasn't someone read you the book 'The Earth is Flat'...Session Vars CAN'T're wrong!!!!

I've noticed this is one of several problems that seem to have no solution...;)

Reply With Quote