I have an issue with the Upload progress monitor. It works fine when I leave out my tracking information from the global.asax file.
If I put the following in my global.asax, I get the error asking if I registered the RadUploadProgressHandler in the web.config.
Why???? If I comment out everything from my PreRequestHandler, the progress monitor works fine...
In my global asax...
Protected Sub Application_PreRequestHandlerExecute()
If HttpContext.Current.User.Identity.IsAuthenticated Then
Dim MyConnection As SqlConnection
MyConnection = New SqlConnection("server=kkkkkkk;" _
& "database=kkkkkk;User ID=kkkk;Password=kkkkkkkkkkkk;")
Dim myCommand As SqlCommand
Dim insertCmd As String
insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
myCommand = New SqlCommand(insertCmd, MyConnection)
myCommand.Connection.Open()
myCommand.ExecuteNonQuery()
myCommand.Connection.Close()
End If
End Sub
If I put the following in my global.asax, I get the error asking if I registered the RadUploadProgressHandler in the web.config.
Why???? If I comment out everything from my PreRequestHandler, the progress monitor works fine...
In my global asax...
Protected Sub Application_PreRequestHandlerExecute()
If HttpContext.Current.User.Identity.IsAuthenticated Then
Dim MyConnection As SqlConnection
MyConnection = New SqlConnection("server=kkkkkkk;" _
& "database=kkkkkk;User ID=kkkk;Password=kkkkkkkkkkkk;")
Dim myCommand As SqlCommand
Dim insertCmd As String
insertCmd = "insert into PageLog (PageUI, PageUD, PageIP, PageAG, PageBW, PageUL, PageUR, PageDT) values ('" & Session("UserID") & "', '" & Session("LoginID") & "', '" & Request.UserHostAddress & "', '" & Request.UserAgent & "', '" & Request.Browser.Browser & "', '" & Request.Path & "', '" & Request.RawUrl & "', getdate());"
myCommand = New SqlCommand(insertCmd, MyConnection)
myCommand.Connection.Open()
myCommand.ExecuteNonQuery()
myCommand.Connection.Close()
End If
End Sub