Ajax FileUpload控件外观问题

时间:2014-07-28 12:57:59

标签: c# asp.net ajax

似乎无法弄清楚为什么控件无法正常显示。点击按钮也没有任何作用。

这是设计师的样子

What it looks like in the designer

以下是浏览器中的内容

enter image description here

<body>
<style type="text/css">
#header
{
    width: 547px;
    margin: 0 auto;
    text-align: center;
    height: 221px;
}
    </style>

<form id="form1" runat="server">
    <asp:scriptmanager runat="server" id="scriptmanager"></asp:scriptmanager>
    <div>
        <div id="header">

            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Logo.jpg"/>
            <br />
            <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" Text="Master Import" ></asp:Label>
            <br /><br />
            <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server"
                onuploadcomplete="AjaxFileUpload1_UploadComplete" MaximumNumberOfFiles="1" AllowedFileTypes="xlsm"/>
        </div>
    </div>
</form>
</body>

的web.config

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="AjaxFileUploadHandler" verb="*"
        path="AjaxFileUploadHandler.axd"
        type="AjaxControlToolkit.AjaxFileUploadHandler, 
          AjaxControlToolkit"/>
    </handlers>
</system.webServer>

0 个答案:

没有答案