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

AppState Object is Blank

I'm setting a couple of appstate objects with the
following code... when I go to access them later, i'm not
getting any data.. please help

CODE IN GLOBAL.ASAX:
================================================== ======
Sub Application_Start(ByVal sender As Object, ByVal e As
EventArgs)
' Fires when the application is started
Dim aImpactUniverseArray() As ftImpactOutRecord
Dim hImpactUniverseHash As Hashtable = New
Hashtable()
Dim lCount As Long

ReDim aImpactUniverseArray(0)
' Read in Universe & Universe Hashtable
lCount = ReadftImpact(aImpactUniverseArray,
hImpactUniverseHash)
Application("ftImpactUniverse") =
aImpactUniverseArray ' Structure
Application("ftImpactUniverseHash") =
hImpactUniverseHash ' Hashtable
' Read in pricing & hash
End Sub

CODE IN ASPX PAGE ACCESSING AT RUNTIME:
================================================== =======

Private Sub Page_Load(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MyBase.Load
'/ Get Impact Universe
ftImpUniverse = Application("ftImpactUniverse")
hImpHash = Application("ftImpactUniverseHash")
End Sub
Nov 17 '05 #1
1 1159
Never Mind - internal bug
-----Original Message-----
I'm setting a couple of appstate objects with the
following code... when I go to access them later, i'm notgetting any data.. please help

CODE IN GLOBAL.ASAX:
================================================= =======
Sub Application_Start(ByVal sender As Object, ByVal e As
EventArgs)
' Fires when the application is started
Dim aImpactUniverseArray() As ftImpactOutRecord
Dim hImpactUniverseHash As Hashtable = New
Hashtable()
Dim lCount As Long

ReDim aImpactUniverseArray(0)
' Read in Universe & Universe Hashtable
lCount = ReadftImpact(aImpactUniverseArray,
hImpactUniverseHash)
Application("ftImpactUniverse") =
aImpactUniverseArray ' Structure
Application("ftImpactUniverseHash") =
hImpactUniverseHash ' Hashtable
' Read in pricing & hash
End Sub

CODE IN ASPX PAGE ACCESSING AT RUNTIME:
================================================= ========

Private Sub Page_Load(ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase.Load
'/ Get Impact Universe
ftImpUniverse = Application("ftImpactUniverse")
hImpHash = Application("ftImpactUniverseHash")
End Sub
.

Nov 17 '05 #2

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

Similar topics

16
by: cwizard | last post by:
I'm calling on a function from within this form, and there are values set but every time it gets called I get slammed with a run time error... document.frmKitAmount.txtTotalKitValue is null or not...
4
by: Julie | last post by:
I stumbled across Application from someone else's code, and I can't find out squat about by searching MS, Google, or Google Groups. For the most part, this is returning the fully-qualified name...
2
by: Hutty | last post by:
The following line is creating the above error message. tree_nodes((level)-1).Nodes.Add(tree_nodes(level)) It's because of the following line where I'm trying to calculate the length of blank...
5
by: eBob.com | last post by:
I am trying to change some Structures to Classes. The Classes now look like this ... Public Class OneAttr Public AttrName As String Public Column As String Public Caption As String End Class...
2
by: zdrakec | last post by:
Hello all: I have the Crystal Report viewer imbedded on a .NET form, and it works very well... except, on the target machine, when I set the ReportSource property of the viewer (to a...
4
by: TS | last post by:
In my production exceptions i get an email with all the form elements and their values to debug. the controls that have a blank value are not seen and it makes my debug job harder (was the...
4
by: rbjorkquist | last post by:
This is my first attempt at writing/using web services, so any and all comments will be greatly appreciated. With that said, I am also by no means saying this is the correct either. I have...
5
by: vitaminz | last post by:
Hi it's me again, I've pretty much finished a program I'm making, which does the following: The program is for a garage, and it does the following functions: Adds a new car Display cars Amend...
25
by: tmallen | last post by:
I'm parsing some text files, and I want to strip blank lines in the process. Is there a simpler way to do this than what I have here? lines = filter(lambda line: len(line.strip()) 0, lines) ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.