单击按钮功能不会被触发。为什么会这样。
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server"
AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
<asp:Image ID="Image1" runat="server"
ImageUrl="~/images/ajax-progress.gif"
/>
<br />
Please Wait. This will take few minutes.
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="btnUpdate" runat="server"
Text="Update"
onclick="btnUpdate_Click"
Width="100px" />
</ContentTemplate>
</asp:UpdatePanel>
后面的代码:
protected void btnUpdate_Click(object sender, EventArgs e)
{
trunc();
ConsumerUpld(FileUpload1);
}
ConsumerUpld(fileupld)
函数更新数据库中的表