Ajax Toolkit AjaxFileUpload throw exception

I have an input form in which I want to add a file loader. I added the script toolkit manager to the main page, then I added the ajaxfileupload control<http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx>

aspx is as follows

<ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" ThrobberID="myThrobber" ContextKeys="fred"
                AllowedFileTypes="jpg,jpeg" MaximumNumberOfFiles="2" runat="server" UploadedComplete="AjaxFileUpload1_UploadedComplete" />

now the AjaxFileUpload1_UploadedComplete method is empty.

I got this exception and no event fires except page_load

Sys.ArgumentException: Sys.ArgumentException: Unable to deserialize. The data does not match valid JSON.

+3
source share
1 answer

Source: https://habr.com/ru/post/1544020/


All Articles