0
我用這個的UpdatePanel &的UpdateProgress:爲什麼UpdatePanel的和的UpdateProgress在asp.net頁面不能正常工作
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
<ProgressTemplate>
Please Wait...
<img alt="" src="../images/forDesign/loading.png" />
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:FileUpload ID="FileUpload1" runat="server" ValidationGroup="selectFile" AllowMultiple="true" />
<br />
<asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick="Upload" />
<asp:Label ID="LabelUploadFiles" runat="server" Visible="false" Text=""></asp:Label>
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnUpload" />
</Triggers>
</asp:UpdatePanel>
我當單擊btnUpload,除了執行上傳()的Page_Load()被執行過: