I want to use any kind of file upload control in an updatepanel and a customized panel inside of that update panel. First I used asp.net file upload which nrever rised any "Upload Complete" event. After searching this forum, I reached to the conclusion that
this control is not compatible with updatepanel. Then I switched to AjaxFileUpload. at first it used to rais the exception: "AjaxFileUpload.cs not found" when I wanted to save the uploaded file in uploadcomplete event. After I couldn't find a solution in forums,
I thought newer versions of ajaxcontrol toolkit may solve the problem. Long story made short: From that time on, in any combination of versions of visual studio, .net framework and ajaxcontroltoolkit, this fileupload control is rendered like only a small black
stripe. (I have screen shot of this shape but I don't know how to upload here). In design mode rendering of control is OK.
this is the code part that has problems, I had to make a new page because my main page was excessively complecated
I added the toolkitscriptmanager afer receiving the following comment from Chetan.Sarod. Adding this control together with scriptmanager and uploadpanel results in software looking for ajaxfileupload.cs again. without any of toolkitscriptmanager or scriptmanager,
I see that black stripe again.
You can not have both a ScriptManager and a ToolkitScriptManager on the same page, and to make the AjaxFileUpload work you should use the ToolkitScriptManager, i e like this:
So if you try the example that I gave it is just showing the black stripe? Which version of the toolkit do you use and is the problem the same in all browers?
Toolkit version is 4.1.7.1213 published on Dec.14.2013. Language is "Neutral" and I downloaded it directly from Codeplex. I'm not sure if version information gives you data about underlying .net library of toolbox since I've forgotten which version of .net
is this toolkit for.
I've also added my web.config file here as it may be of help:
Ok, according to the version number of the toolkit you are using the version created for .Net 4.0 but your solution is for .Net 4.5 so the next thing to try is to download the toolkit made for .Net 4.5 and see if that helps!
For last few days I was busy with versions. .net 4.5 seems to have more bugs. in the middle of struggling with Ajax, project stopped connecting to sql server. I reinstalled .net 4.5 and 4.51 and developers pack, then downgraded my project to .net 4.0 with
ajax 4 and all problems including ajax and database connection solved.
Another change that I've made was this time was I added reference to all dlls in ajaxcontroltoolkit. before this problem I used to add reference only to main dll file and it used to work. I don't know which of these changes really solved the problem but
I'm sure I will stay away from 4.5 these days.
I don't know if this is correct to aske another question under this topic or not? the control doesn't keep the temporary file in relevant temp directory and after uploadcomplete event raised, the SaveAs method throws an exception that it can't find temp
file.
if it is not working for you,I suggest that you can consult your issue on ASP.NET Ajax forum:
http://ajaxcontroltoolkit.codeplex.com/workitem/list/basic for better solution and support. Ajax Experts there will further research this issue and provide you better support.
Thank you for your understanding.
renderajaxfileuploader
We are trying to better understand customer views on social support experience. Click HERE to participate the survey. Thanks!
Member
37 Points
132 Posts
AjaxFileupload control not showing properly
Jan 07, 2014 03:24 PM|Ahmadi_rad|LINK
Hello
I want to use any kind of file upload control in an updatepanel and a customized panel inside of that update panel. First I used asp.net file upload which nrever rised any "Upload Complete" event. After searching this forum, I reached to the conclusion that this control is not compatible with updatepanel. Then I switched to AjaxFileUpload. at first it used to rais the exception: "AjaxFileUpload.cs not found" when I wanted to save the uploaded file in uploadcomplete event. After I couldn't find a solution in forums, I thought newer versions of ajaxcontrol toolkit may solve the problem. Long story made short: From that time on, in any combination of versions of visual studio, .net framework and ajaxcontroltoolkit, this fileupload control is rendered like only a small black stripe. (I have screen shot of this shape but I don't know how to upload here). In design mode rendering of control is OK.
May any one help?
thanks
render ajaxfileuploader
Participant
1390 Points
323 Posts
Re: AjaxFileupload control not showing properly
Jan 08, 2014 03:39 AM|valuja|LINK
Hi,
Could you provide the code of the page that you are having problem with?
Best regards
Johan
render ajaxfileuploader
All-Star
48393 Points
12161 Posts
Re: AjaxFileupload control not showing properly
Jan 08, 2014 10:57 PM|chetan.sarode|LINK
Refer this
http://stephenwalther.com/blog/archive/2012/05/01/ajax-control-toolkit-may-2012-release.aspx
render ajaxfileuploader
Team Lead, Product Development
Approva Systems Pvt Ltd, Pune, India.
Member
37 Points
132 Posts
Re: AjaxFileupload control not showing properly
Jan 09, 2014 01:25 AM|Ahmadi_rad|LINK
this is the code part that has problems, I had to make a new page because my main page was excessively complecated
I added the toolkitscriptmanager afer receiving the following comment from Chetan.Sarod. Adding this control together with scriptmanager and uploadpanel results in software looking for ajaxfileupload.cs again. without any of toolkitscriptmanager or scriptmanager, I see that black stripe again.
render ajaxfileuploader
Participant
1390 Points
323 Posts
Re: AjaxFileupload control not showing properly
Jan 09, 2014 04:19 AM|valuja|LINK
Hi,
You can not have both a ScriptManager and a ToolkitScriptManager on the same page, and to make the AjaxFileUpload work you should use the ToolkitScriptManager, i e like this:
Hope this helps!
Best regards
Johan
render ajaxfileuploader
Member
37 Points
132 Posts
Re: AjaxFileupload control not showing properly
Jan 09, 2014 11:44 AM|Ahmadi_rad|LINK
no way, unfortunately it didn't help. It only showed the small black stripe.
render ajaxfileuploader
Participant
1390 Points
323 Posts
Re: AjaxFileupload control not showing properly
Jan 10, 2014 04:38 AM|valuja|LINK
Hi,
So if you try the example that I gave it is just showing the black stripe? Which version of the toolkit do you use and is the problem the same in all browers?
/Johan
render ajaxfileuploader
Member
37 Points
132 Posts
Re: AjaxFileupload control not showing properly
Jan 10, 2014 04:44 PM|Ahmadi_rad|LINK
Hi
Toolkit version is 4.1.7.1213 published on Dec.14.2013. Language is "Neutral" and I downloaded it directly from Codeplex. I'm not sure if version information gives you data about underlying .net library of toolbox since I've forgotten which version of .net is this toolkit for.
I've also added my web.config file here as it may be of help:
and, yes, problem is the same in all browsers.
Thanks
render ajaxfileuploader
Participant
1390 Points
323 Posts
Re: AjaxFileupload control not showing properly
Jan 10, 2014 05:16 PM|valuja|LINK
Hi,
Ok, according to the version number of the toolkit you are using the version created for .Net 4.0 but your solution is for .Net 4.5 so the next thing to try is to download the toolkit made for .Net 4.5 and see if that helps!
/Johan
render ajaxfileuploader
Member
37 Points
132 Posts
Re: AjaxFileupload control not showing properly
Jan 13, 2014 02:11 PM|Ahmadi_rad|LINK
For last few days I was busy with versions. .net 4.5 seems to have more bugs. in the middle of struggling with Ajax, project stopped connecting to sql server. I reinstalled .net 4.5 and 4.51 and developers pack, then downgraded my project to .net 4.0 with ajax 4 and all problems including ajax and database connection solved.
Another change that I've made was this time was I added reference to all dlls in ajaxcontroltoolkit. before this problem I used to add reference only to main dll file and it used to work. I don't know which of these changes really solved the problem but I'm sure I will stay away from 4.5 these days.
I don't know if this is correct to aske another question under this topic or not? the control doesn't keep the temporary file in relevant temp directory and after uploadcomplete event raised, the SaveAs method throws an exception that it can't find temp file.
render ajaxfileuploader
All-Star
15648 Points
2151 Posts
Re: AjaxFileupload control not showing properly
Jan 16, 2014 12:47 AM|Happy Chen - MSFT|LINK
hi,
i would suggest you check out your web.config, as shown below:
Please refer to the links below:
April 2013 Release of the Ajax Control Toolkit
http://stephenwalther.com/archive/2013/04/30/april-2013-release-of-the-ajax-control-toolkit
Resolved: AjaxFileUploader April 2013 Upload Error
http://ajaxcontroltoolkit.codeplex.com/workitem/27416
if it is not working for you,I suggest that you can consult your issue on ASP.NET Ajax forum: http://ajaxcontroltoolkit.codeplex.com/workitem/list/basic for better solution and support. Ajax Experts there will further research this issue and provide you better support.
Thank you for your understanding.
render ajaxfileuploader