Hello,
I've been trying to use the RadProgressArea in one of our web apps and haven't been able to get it to work. I traced the problem down to an event we're firing to execute a custom context resolver, that passes the Request.Params collection. If I remove the event code the progress area works fine.
I've pasted below a sample that illustrates this bug.
I created an ASP.NET 2.0 web site, and here is the default.aspx:
I used the SmartTag feature to set up my Web.Config and ran the project. The upload worked fine, and the Progress Area appeared as expected.
I then created this class:
and added this to my Global.asax:
Now if I run the project, the file upload still works but the Progress Area does not appear.
I am using the latest Telerik build, ASP.NET AJAX for 5/27/2009. The file I am uploading is 78MB in size, and takes a couple seconds on a localhost, long enough to see the progress area appear.
Please advise if there is any work around, because as it stands we can't use the control in our web applications because of this issue.
Thanks,
-Chris
I've been trying to use the RadProgressArea in one of our web apps and haven't been able to get it to work. I traced the problem down to an event we're firing to execute a custom context resolver, that passes the Request.Params collection. If I remove the event code the progress area works fine.
I've pasted below a sample that illustrates this bug.
I created an ASP.NET 2.0 web site, and here is the default.aspx:
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <br /> |
| <telerik:RadUpload ID="RadUpload1" runat="server" TargetFolder="Uploads"> |
| </telerik:RadUpload> |
| <br /> |
| <asp:Button ID="Button1" runat="server" Text="Upload" /><br /> |
| <telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> |
| <br /> |
| <telerik:RadProgressArea ID="RadProgressArea1" runat="server"> |
| </telerik:RadProgressArea> |
| </form> |
| </body> |
| </html> |
I used the SmartTag feature to set up my Web.Config and ran the project. The upload worked fine, and the Progress Area appeared as expected.
I then created this class:
| using System; |
| using System.Collections.Specialized; |
| using System.Web; |
| public class OverrideApp : HttpApplication |
| { |
| public OverrideApp() |
| { |
| PostResolveRequestCache += PopulateContext; |
| } |
| public void PopulateContext(object sender, EventArgs e) |
| { |
| Object context = new object(); |
| BuildContext(context, Request.Params); |
| } |
| private void BuildContext(object context, NameValueCollection nameValueCollection) |
| { |
| return; |
| } |
| } |
and added this to my Global.asax:
| <%@ Application Language="C#" Inherits="OverrideApp" %> |
Now if I run the project, the file upload still works but the Progress Area does not appear.
I am using the latest Telerik build, ASP.NET AJAX for 5/27/2009. The file I am uploading is 78MB in size, and takes a couple seconds on a localhost, long enough to see the progress area appear.
Please advise if there is any work around, because as it stands we can't use the control in our web applications because of this issue.
Thanks,
-Chris