0

asp.netページに2つの更新パネルがあり、更新パネルに1つのテキストボックスとaspボタンがあり、ユーザーはテキストボックスを入力してボタンを次々にクリックします。最初のリクエストは1つのクラスメソッドに送信され(5秒かかります)、2番目はリクエストは別のクラスメソッドを送信します(10秒かかります)が、ユーザーは応答を待たずに最初のボタンをクリックし、すぐに2番目のボタンをクリックします。両方のリクエストを送信し、独立して(つまり非同期で)応答を表示します。plsは私に提案を与えます

4

1 に答える 1

1

UpdateProgressコントロールを使用します。

更新プロセス

<asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdateProgress runat="server" id="PageUpdateProgress">
            <ProgressTemplate>
                Loading...
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel runat="server" id="Panel">
            <ContentTemplate>
                <asp:Button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />
            </ContentTemplate>
        </asp:UpdatePanel>
于 2012-06-01T07:49:03.997 に答える