user control problem again !

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top