更新パネル内にボタンがあり、レポートが作成され、レポートはページ応答として表示されます。私は更新パネルを持っていなかったので、レポートが生成されてダウンロードされましたが、今は更新パネルを導入したときにレポートが生成されますが、ブラウザでは表示されません。私は何をすべきか。レポートを生成して更新パネル内で実行する
using (HtmlTextWriter writer = new HtmlTextWriter(stringWriter))
{
writer.Write(success);
writer.Write(error);
writer.Write(warning);
Response.Write(stringWriter.ToString());
}
Response.End();
私は更新の進捗状況を使用するために更新パネルを使用しています。
エラーresponse.end()
Get the system.web.httpresponse object associated with the system.web.ui.page object.
This object allows you to send HTTP response data to client and
contains information about the response
に何が、これは意味しない
更新:
<asp:UpdateProgress ID="UpdateProgress2" runat="server">
<ProgressTemplate>
<div style="width: 338px; position: relative; top: -420px; left: 80px" class="">
<b>Please Wait...</b>
<img runat="server" id="ajaxLoader" style="background-color: White; width: 338px;"
src="styles/images/loadImage.gif" alt="loading" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</ContentTemplate>
</asp:UpdatePanel>
<asp:Button ID="btn_upload" CssClass="UploadBtncss" runat="server" Text="Upload"
OnClick="upload_Click" />
感謝を@AshokD UpdatelPanelの中にを置くと、そのトリックが起こります! –
TheDude