Metto tutto il file... Ci sono commentati tutti i tentativi che h
o fatto.

mille grazie per l'aiuto

<%@ Application Language="VB" %>

<script runat="server">

Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
End Sub

Sub CreateTimer()
Dim myTimer As New System.Timers.Timer()
myTimer.Interval = 3000
myTimer.Enabled = True

AddHandler myTimer.Elapsed, New System.Timers.ElapsedEventHandler(AddressOf Me.myTimer_Elapsed)
End Sub

Sub myTimer_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs)

'Response.RedirectLocation.Insert(0, "prova.txt")
'Server.Transfer("default2.aspx", True)
'My.Response.BufferOutput = True
'Me.Response.Redirect("prova.txt")
'My.Response.Redirect("prova.txt")
'HttpContext.Current.Response.Redirect("prova.txt" )
End Sub

Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub

Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
CreateTimer()

End Sub

Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
End Sub

</script>