日期:2014-05-17 浏览次数:20568 次
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote"
Width="100%" Height="500px" AsyncRendering="false">
</rsweb:ReportViewer>
</ContentTemplate>
</asp:UpdatePanel>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//检查权限代码省略
ReportViewer1.ServerReport.ReportPath = "/test1";
ReportViewer1.ServerReport.ReportServerUrl = 192.168.1.1/reportlocal;
ReportViewer1.ServerReport.Refresh();
}
}