Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         list = SPhone_ReportUrlBLL.GetQuery().Where(x => x.IsShow == 1).ToList();
     }
 }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string guid = Request.QueryString["guid"] ?? "";

                if (guid != "")
                {
                    var GUID = Guid.Empty;

                    try
                    {
                        GUID = Guid.Parse(guid);
                    }
                    catch { }

                    var info = SPhone_ReportUrlBLL.Find(GUID);
                    if (info != null)
                    {
                        ReportViewerServerCredentials IServer = new ReportViewerServerCredentials();

                        ReportViewer1.ServerReport.ReportServerCredentials = IServer;
                        ReportViewer1.ServerReport.ReportServerUrl         = IServer._reportServerUri;
                        ReportViewer1.ProcessingMode = ProcessingMode.Remote;

                        ReportViewer1.ServerReport.ReportPath = info.ReportPath;

                        this.Title = info.ReportName;
                    }
                }
            }
        }