Hello!
I don't know what's going on, because when I initiate RadWindow control, it has been working some time.
Suddendly the window won't show up. I turn off compression and it shown up.
The most interesting is that, when I turn on the compression it worked again some time and die.
In global.asax I have the following code:
Anyone can help me?
I don't know what's going on, because when I initiate RadWindow control, it has been working some time.
Suddendly the window won't show up. I turn off compression and it shown up.
The most interesting is that, when I turn on the compression it worked again some time and die.
In global.asax I have the following code:
| Dim app As HttpApplication = TryCast(sender, HttpApplication) |
| Dim acceptEncoding As String = app.Request.Headers("Accept-Encoding") |
| Dim prevUncompressedStream As Stream = app.Response.Filter |
| If Not (TypeOf app.Context.CurrentHandler Is Page) OrElse app.Request("HTTP_X_MICROSOFTAJAX") IsNot Nothing Then |
| Return |
| End If |
| If String.IsNullOrEmpty(acceptEncoding) OrElse acceptEncoding.Length = 0 Then |
| Return |
| End If |
| acceptEncoding = acceptEncoding.ToLower() |
| If acceptEncoding.Contains("deflate") OrElse acceptEncoding = "*" Then |
| ' defalte |
| app.Response.Filter = New DeflateStream(prevUncompressedStream, CompressionMode.Compress) |
| app.Response.AppendHeader("Content-Encoding", "deflate") |
| ElseIf acceptEncoding.Contains("gzip") Then |
| ' gzip |
| app.Response.Filter = New GZipStream(prevUncompressedStream, CompressionMode.Compress) |
| app.Response.AppendHeader("Content-Encoding", "gzip") |
| End If |
Anyone can help me?