asp ajax工具包的AjaxFileUpload无法上传文件

时间:2014-01-07 17:48:36

标签: asp.net ajaxcontroltoolkit

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                            </asp:ToolkitScriptManager>
                            <asp:AjaxFileUpload ID="AjaxFileUpload1" Mode="Auto" runat="server" ThrobberID="myThrobber"
                                ContextKeys="fred" OnUploadComplete="AjaxFileUpload1_UploadComplete" AllowedFileTypes="jpg,jpeg"
                                MaximumNumberOfFiles="1" />
                            <asp:Image ID="MyThrobber" ImageUrl="~/Images/select2.png" Style="display: None"
                                runat="server" />

我正在使用此功能,但是当我上传文件时出现错误,文件未上传

1 个答案:

答案 0 :(得分:0)

检查您的网络配置。

阅读此页面并确保所有设置都正确: http://www.asp.net/ajaxlibrary/ajaxcontroltoolkitsamplesite/ajaxfileupload/ajaxfileupload.aspx