0
以編程方式取消使用Web表單ReportViewer控件啓動的長時間運行的報告嗎? .Reset()
方法的文檔說通過Microsoft.Reporting.WebForms取消報告運行ReportViewer
呼叫Reset方法取消任何當前的渲染和復位 ReportViewer控件到默認狀態。
但是,如果我(例如)向Web窗體上的按鈕來調用reportViewer1.Reset()
上postback
,該行實際上從未被擊中,直到報告完成。查看trace.axd
,我可以看到postback
在BeginLoadState
和EndLoadState
之間掛起,直到報告結束。