私は顧客の .NET アプリケーションを使用しており、ページがサーバーへのポストバックを実行している間にテキストと gif アニメーションを表示しようとしています。私は元々、アプリケーション ソリューションで別のプロジェクトを作成しました。このプロジェクトでは、ボタンを押すだけで 5 秒の遅延が発生します (ポストバック遅延をシミュレートするため)。遅延の後、Web ページのラベルが現在の時刻で更新されます。
ScriptManager、UpdatePanel、および UpdateProgress コントロールを使用しています。私が作成した別のプロジェクトは正常に動作しますが、同じコードを顧客の既存のプロジェクトに統合すると、UpdateProgress コントロールでテキストまたは gif を表示できません。
フォームコードは次のとおりです。
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager3" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<h1>UpdatePanel</h1>
<asp:Label ID="Label1" runat="server"></asp:Label>
<asp:Button ID="Button1" runat="server" Text="Generate Report"
onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
<br />
<asp:UpdateProgress ID="UpdateProgress3" runat="server"
AssociatedUpdatePanelID="UpdatePanel3">
<ProgressTemplate>
<h1>UpdateProgress</h1>
<div class="PleaseWait">
Please Wait...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
<h1>No update, just straight up text</h1><br>
</div>
</form>
</body>
任意の提案をいただければ幸いです。