protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ReportViewerAmh.ProcessingMode = ProcessingMode.Remote;
var userName = System.Configuration.ConfigurationManager.AppSettings["CatsReportUserName"];
var password = System.Configuration.ConfigurationManager.AppSettings["CatsReportPassword"];
var url = System.Configuration.ConfigurationManager.AppSettings["CatsReportServerURL"];
var credential = new CatsReportServerCredentials(userName, password);
ReportViewerAmh.ServerReport.ReportServerCredentials = credential;
ReportViewerAmh.ServerReport.ReportServerUrl = new Uri(url);
ReportViewerAmh.ServerReport.ReportPath = Request["path"];
ReportViewerAmh.ServerReport.Refresh();
}
}