我正在尝试发送一些数据写入我们的SQL服务器。我添加了一个更新面板,以便用户知道它正在处理。在我添加updatepanel之前,所有数据都发送得很好,在我添加UpdatePanel之后,Text框发送得很好,但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>