我正在尝试发送一些数据以写入我们的 SQL 服务器。我添加了一个更新面板,以便用户知道它正在处理。在我添加更新面板之前,所有数据都可以正常发送,在我添加更新面板之后,文本框可以正常发送,但 FileUpload 控件无法发送任何内容。有任何想法吗?谢谢。这是我的aspx代码
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
</asp:ToolkitScriptManager>
<h2>
Upload Your File
</h2><br />
<asp:FileUpload ID="FileUploader" runat="server" />
<br /><br />
Please Enter a Patient ID: <asp:TextBox ID="PatientIDTextBox" runat="server"></asp:TextBox>
<br /><br />
Please Enter a Draw Date: <asp:TextBox ID="DrawDateTextBox" runat="server"></asp:TextBox>
<asp:CalendarExtender
ID="CalendarExtender1"
TargetControlID = "DrawDateTextBox"
runat="server">
</asp:CalendarExtender><br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="ProcessFileBtn" runat="server" Text="Process File"
OnClick="ProcessFileBtn_OnClick" /><br /><br />
<asp:Label ID="TestLabel" runat="server" Text=""></asp:Label><br /><br />
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<div id="blur"> </div>
<div id="progress" class="center">
<center>
<i>Update in progress. Please wait ...<br />
</img src="Images/MyAjaxLoader.gif" />
</center>
</div>
</ProgressTemplate>
</asp:UpdateProgress>