本文介绍了AjaxFileUpload Porblem,找不到AjaxFileUpload.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.asp页面包含一个AjaxFileUpload控件和一个文本框,如下所示:

I have a .asp page contains an AjaxFileUpload control and a text box as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test_AjaxUpload.aspx.cs" Inherits="Test_AjaxUpload" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">

        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" AllowedFileTypes="jpg,jpeg"

                        MaximumNumberOfFiles="10" OnUploadComplete="AjaxFileUpload1_UploadComplete" />
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>





这是我的代码背后:



and this is my code behind:

protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void AjaxFileUpload1_UploadComplete(object sender, AjaxFileUploadEventArgs e)
    {
        TextBox1.Text = e.FileName;
    }





我在Page_Load事件后有异常:

找不到AjaxFileUpload.cs ..我不知道这个异常的含义以及如何找到这个file.cs?我用谷歌搜索了这个问题,但我找不到任何明确的答案,甚至没有文章..提前谢谢



I have exception after Page_Load event:
AjaxFileUpload.cs not found .. I don't know the meaning of this exception and how to find this file.cs ? I've googled this question but i couldn't find any clear answer or even an article .. Thanks in advance

推荐答案


这篇关于AjaxFileUpload Porblem,找不到AjaxFileUpload.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 07:52