473,397 Members | 1,985 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,397 software developers and data experts.

Wierd SessionState problem (again)

PageOne.aspx has an image control. The imageURL of the image control points
to ImagePump.aspx.

ImagePump.aspx gets a bitmap out of a SQLServer database, puts in into a
bitmap object and does a:

myImage.save(response.outputstream, ImageFormat.jpeg).

This code works however, on this page I refer to a sessionvariable that is
accessable from all of my other pages. But that session variable is not
accessable from this page - it is nothing.

The only difference between this page and other aspx pages is that this page
never gets explicitly requested. The code in the page_load gets executed
however. It must be getting executed when the image.imageurl property on
pageone.aspx references it.

The mystery is why can't this page reference session variables?
[I am sure it has been populated and I am sure that sessionstate is enabled
for this page]
thanks,
Dean

Nov 17 '05 #1
1 1332
figured out wierd problem and learned something

When stepping through code you are not always stepping through in the
sequence the code is executed. A component on a page got it's property
before another page set session state. But when I stepped through the
sequence was reversed.
Dean

"Dean" <de*********@earthlink.net> wrote in message
news:O5**************@TK2MSFTNGP09.phx.gbl...
PageOne.aspx has an image control. The imageURL of the image control points to ImagePump.aspx.

ImagePump.aspx gets a bitmap out of a SQLServer database, puts in into a
bitmap object and does a:

myImage.save(response.outputstream, ImageFormat.jpeg).

This code works however, on this page I refer to a sessionvariable that is
accessable from all of my other pages. But that session variable is not
accessable from this page - it is nothing.

The only difference between this page and other aspx pages is that this page never gets explicitly requested. The code in the page_load gets executed
however. It must be getting executed when the image.imageurl property on
pageone.aspx references it.

The mystery is why can't this page reference session variables?
[I am sure it has been populated and I am sure that sessionstate is enabled for this page]
thanks,
Dean

Nov 17 '05 #2

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

Similar topics

2
by: CMEDIA_SOUND | last post by:
I have a peculiar problem, I have a tabpage with a label control on it. When i set a background image to the tabpage and drag the label around it has paint issues in that it is slow, granted the...
1
by: cody | last post by:
I have a OOP problem with the well known pattern where objects containing an object which represents a list of subobjects. Now my problem is that the ctor of a subobject indirectly calls the...
0
by: Flemming Jensen | last post by:
The idea behind this code is to standardize all my webpages in an application to look the same by inheriting the pages from a userdefined class. But it gives me problems regarding sessionstate... ...
7
by: Shane Bishop | last post by:
I've been fighting with the Page_Load event firing twice. I looked through this user group and saw several other people having similar problems. There were various reasons for it:...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
2
by: Philipp Schumann | last post by:
....BUT for _custom_ HttpHandlers. How can I do that? In my custom IHttpHandler, HttpContext.Current.Session is a null reference, and I can't use the session state. It is enabled in web.config...
3
by: Tom | last post by:
We are experiencing some wierd debugging behavior. What happens is that, during debugging with VS 2003, the debugger seems to 'skip' statements that are associated with database operations. For...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
4
by: Cirene | last post by:
In my web.config I added <pages enableSessionState="true">. In each of my pages I also added EnableSessionState="True" to the Page declaration. (I didn't think this was necessary, but...) ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.