Z
Zulander
I am still having problem with the user control, for some reason my
usercontrol wont stay in the memory, it is stoping at the end of the
Login1_LoggedIn sub , The Application("Monitor") should keep it
running?
thank you
----------------File global.asax-------------------
Sub Application_Start(ByVal Sender As Object, ByVal E As EventArgs)
Dim Monitor As FileMonitor.Monitor
Application("Monitor") = Monitor
End Sub
----------------File login.aspx-------------------
Protected Sub Login1_LoggedIn(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Login1.LoggedIn
Dim Monitor As FileMonitor.Monitor =
CType(Application("Monitor"), FileMonitor.Monitor)
Monitor =new FileMonitor.Monitor
Dim Cpfile As String
Monitor.Interval = 5000
Monitor.TimeOut = 1
Cpfile = Monitor.CopyFile("C:\1.txt")
Monitor.tEnabled = True
End Sub
usercontrol wont stay in the memory, it is stoping at the end of the
Login1_LoggedIn sub , The Application("Monitor") should keep it
running?
thank you
----------------File global.asax-------------------
Sub Application_Start(ByVal Sender As Object, ByVal E As EventArgs)
Dim Monitor As FileMonitor.Monitor
Application("Monitor") = Monitor
End Sub
----------------File login.aspx-------------------
Protected Sub Login1_LoggedIn(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Login1.LoggedIn
Dim Monitor As FileMonitor.Monitor =
CType(Application("Monitor"), FileMonitor.Monitor)
Monitor =new FileMonitor.Monitor
Dim Cpfile As String
Monitor.Interval = 5000
Monitor.TimeOut = 1
Cpfile = Monitor.CopyFile("C:\1.txt")
Monitor.tEnabled = True
End Sub