Asp Net Asyncfileupload Unknown Server Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up getting error “Unknown Server error” while using asyncfileupload in asp.net using c#? up vote 1 down vote favorite i am using asyncfileupload control to upload a .csv file an read it and store the data in database here is what i am doing :
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community http://stackoverflow.com/questions/13467349/getting-error-unknown-server-error-while-using-asyncfileupload-in-asp-net-usin Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ASP.Net AjaxControlToolkit AsyncFileUpload in update panel that is created in server-side code with master page c# up vote 1 down vote favorite 1 I have been trawing around http://stackoverflow.com/questions/8489980/asp-net-ajaxcontroltoolkit-asyncfileupload-in-update-panel-that-is-created-in-se all morning trying to get the AsyncFileUpload control from the asp.net AjaxControlToolkit to work in my situation, with no luck. I have an Ajax enabled page which displays questions to the user, and allows then to go back and forward through the questions without requiring a full-page post back, multiple questions can be displayed on the page and of these questions one or more could be a file upload control. The page uses a masterpage which contains the form element which I have modified as a result of the numerous answers which seem to point to it being the issue. http://stackoverflow.com/a/2918382/728841
If you look at the resultant HTML, you’ll see that aside from the standard Microsoft AJAX libraries being pulled in via ScriptResource.axd, four other script files are downloaded in support of the AFU. Meanwhile the default values for some of the control’s properties are added to the call to the standard AJAX library Sys.Application.add_init call. The control itself renders as a file input element (with two id attributes!!) wrapped inside a div with some text added dynamically saying ‘No file chosen’. The wrapper div is itself wrapped in a span tag with a hidden field that will be used to keep score of uploads and the like.