AppState Object is Blank

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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
    Anthony C Guest

  2. Similar Questions and Discussions

    1. about:blank - flash popup is blank
      When going to yahoo maps (the new version that runs on flash9), when clicking on "printable version" I get a blank page that pops up with...
    2. Dynamically loading user control into Placeholder gives Object reference not set to an instance of an object
      I've created user controls that contain listboxes that are dynamically populated from the database. In the html view of the user control...
    3. Custom Control Problem :: Object reference not set to an instance of an object
      Hi All! I have the following Custom Control file... '########### WebUserControl1.ascx ############# <%@ Control Language="vb"...
    4. Cannot serialize object of type System.Object[,]. Multidimensional arrays are not supported
      Hi, I get this on server when trying to retun a 2 dim array. I apprecaite that they are not supported as per...
    5. creating a blend, object panel is blank
      Okay so I created a blend, now I want to manipulate it, so I open the object panel But my object panel is blank, even when I select my blend...
  3. #2

    Default AppState Object is Blank

    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
    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
    >.
    >
    Anthony C Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139