Martin Kutter
Top achievements
Rank 1
Martin Kutter
asked on 20 Feb 2009, 10:58 AM
Hi,
I am trying to migrate from the classic controls to the asp.net AJAX controls. So, to start, I have created a small project in order to test the upload and the progress bar. To my surprise, the progress bas is not displayed.
The code in the aspx page is as follows:
I am trying to migrate from the classic controls to the asp.net AJAX controls. So, to start, I have created a small project in order to test the upload and the progress bar. To my surprise, the progress bas is not displayed.
The code in the aspx page is as follows:
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadProgressManager ID="RadProgressManager1" runat="server" EnableEmbeddedBaseStylesheet="False" |
EnableEmbeddedSkins="False" UniquePageIdentifier="6e458f0c-2140-40dd-8e9d-6d21479f7747" /> |
<div> |
<telerik:RadUpload ID="RadUpload1" runat="server" Skin="Office2007"> |
</telerik:RadUpload> |
<br /> |
<br /> |
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="Outlook"> |
<Localization Uploaded="Uploaded" /> |
</telerik:RadProgressArea> |
</div> |
<br /> |
<br /> |
<asp:Button ID="Button1" runat="server" Text="Button" /> |
</form> |
Now, if I click on the button, the upload is initiated but no progress bar appears. Am I missing something?
Thanks.
7 Answers, 1 is accepted
0
Hello Martin Kutter,
Thank you for contacting us.
I have reviewed the sample you sent us and it seems to be completely correct. The progress area should appear automatically when you start your upload. However, keep in mind that if you are doing your tests on a local host, the upload speed is about 7-9mb/s. This way you won't be able to see the progress area unless you upload considerably large files. If this is not the case, please make sure that you have done the following:
Greetings,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thank you for contacting us.
I have reviewed the sample you sent us and it seems to be completely correct. The progress area should appear automatically when you start your upload. However, keep in mind that if you are doing your tests on a local host, the upload speed is about 7-9mb/s. This way you won't be able to see the progress area unless you upload considerably large files. If this is not the case, please make sure that you have done the following:
- You have registered RadUploadProgressHandler in the web config. Instructions how to do it.
- You have registered RadUploadHttpModule in the web config. Instructions how to do it.
- Check the Troubleshooting help article.
Greetings,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Martin Kutter
Top achievements
Rank 1
answered on 20 Feb 2009, 01:39 PM
Hi,
Thanks, I had forgotten to add the UploadModule, I only added the websource.axd and the progresshandler.ashx using smartTag.
Now it's working.
Thanks
PS: In case I need to send you a project as attachement, how can I do it here? As I don't see any way to attach a file.
Thanks, I had forgotten to add the UploadModule, I only added the websource.axd and the progresshandler.ashx using smartTag.
Now it's working.
Thanks
PS: In case I need to send you a project as attachement, how can I do it here? As I don't see any way to attach a file.
0
Martin Kutter
Top achievements
Rank 1
answered on 20 Feb 2009, 03:14 PM
Hi again,
I am now trying to implement RadUpload and the progress bar in my original project and it keeps giving me a popup saying did you register the httpmodule? and I'm sure I did as I have used smartTag and it's there in the web.config file. There was a problem since I was having 2 uploadmodule registered in the httpModules tag so I removed the old one. that's when I got the problem. Now I have put the old one back with a different name and I don't have the popup anymore bit no progress bar is shown!
here is my web.config.
Thank you.
I am now trying to implement RadUpload and the progress bar in my original project and it keeps giving me a popup saying did you register the httpmodule? and I'm sure I did as I have used smartTag and it's there in the web.config file. There was a problem since I was having 2 uploadmodule registered in the httpModules tag so I removed the old one. that's when I got the problem. Now I have put the old one back with a different name and I don't have the popup anymore bit no progress bar is shown!
here is my web.config.
<httpHandlers> |
<remove verb="POST,GET" path="Upload.axd" /> |
<remove verb="*" path="*.asmx" /> |
<add verb="*" path="Telerik.RadUploadProgressHandler.aspx" type="Telerik.WebControls.RadUploadProgressHandler, RadUpload.Net2"> |
</add> |
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" /> |
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> |
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> |
</httpHandlers> |
<httpModules> |
<add name="RadUploadModule" type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2" /> |
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> |
<add name="RadUploadModule2" type="Telerik.Web.UI.RadUploadHttpModule" /> |
</httpModules> |
Thank you.
0
Hi Martin Kutter,
In order to attach files you need to open a support ticket instead of forum post.
With respect to you second question, please try to manually remove both entries in httpModules and use the smart tag again. For your convenience, I have also attached a correctly configured web-config file.
Kind regards,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
In order to attach files you need to open a support ticket instead of forum post.
With respect to you second question, please try to manually remove both entries in httpModules and use the smart tag again. For your convenience, I have also attached a correctly configured web-config file.
Kind regards,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Martin Kutter
Top achievements
Rank 1
answered on 23 Feb 2009, 12:36 PM
Hi, thanks for the info, it works now.
A while back, I had requested a way to detect that an error occurred in the page. I was having a problem, a popup window with the code of the page was being displayed by the Rad control. This was due to the fact that the session had timed out. Anyway, the code you gave me was this:
This has been working fine but now as I'm migrating to the new controls, this is not working anymore, it says RadUploadNameSpace is not known.
Is there an equivalent for the new controls?
Thanks,
A while back, I had requested a way to detect that an error occurred in the page. I was having a problem, a popup window with the code of the page was being displayed by the Rad control. This was due to the fact that the session had timed out. Anyway, the code you gave me was this:
RadUploadNameSpace.RadProgressManager.prototype.ShowInvalidContentMessage = function()...
This has been working fine but now as I'm migrating to the new controls, this is not working anymore, it says RadUploadNameSpace is not known.
Is there an equivalent for the new controls?
Thanks,
0
Hi Martin Kutter,
Thank you for your question
Consider using
instead of the old one.
Sincerely yours,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Thank you for your question
Consider using
Telerik.Web.UI.RadProgressManager.prototype._showInvalidContentMessage = function() {...} |
instead of the old one.
Sincerely yours,
Genady Sergeev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Test
Top achievements
Rank 1
answered on 25 Feb 2009, 07:39 AM
Hi please try like this
In code behind write like this call this function on event when you want to show progress
also wirte this on page load event
<telerik:RadProgressManager ID="Radprogressmanager1" runat="server" /> |
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" Skin="WebBlue"> |
<Localization Uploaded="Uploaded" /> |
</telerik:RadProgressArea> |
In code behind write like this call this function on event when you want to show progress
public static void UploadProgressBar() |
{ |
RadProgressContext context = RadProgressContext.Current; |
context.SecondaryTotal = "100"; |
for (int i = 1; i < 100; i++) |
{ |
context.SecondaryValue = i.ToString(); |
context.SecondaryPercent = i.ToString(); |
context.CurrentOperationText = "Doing step " + i.ToString(); |
if (!HttpContext.Current.Response.IsClientConnected) |
{ |
//Cancel button was clicked or the browser was closed, so stop processing |
break; |
} |
// simulate a long time performing the current step |
System.Threading.Thread.Sleep(100); |
} |
} |
also wirte this on page load event
RadProgressArea1.Localization.UploadedFiles = "Completed Steps: "; |
RadProgressArea1.Localization.CurrentFileName = "Step: "; |
RadProgressArea1.Localization.TotalFiles = "Total Steps:"; |