![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi, I have a web service which under certain conditions flushes and reloads application variables using HttpApplicationState Dim objApplication As HttpApplicationState objApplication = HttpContext.Current.Application objApplication.Lock() objApplication("systemVarDS") = objCacheData.getSystemVarList ............................ objApplication.unLock() When I view the application variables from an aspx page on the same server using script runat="server" Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load if not page.ispostback then ' Dim objApplication As HttpApplicationState Dim lnIndex As Integer = 0 ' ObjApplication = HttpContext.Current.Application If Application.Count = 0 Then Response.Write("No Variables Defined") Else For lnIndex = 0 To Application.Count - 1 Response.Write(Application.Contents.GetKey(lnIndex ).ToString & " " & Application(lnIndex).ToString) Next End If end if End Sub /script it tells me i have no application variables Any ideas TIA ? Stu |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |