コード例 #1
0
ファイル: AfficheView.aspx.cs プロジェクト: rcw0125/XGWMS
 private void SetUI()
 {
     try
     {
         string  guid = Request["GUID"];
         Affiche a    = Affiche.GetAffiche(guid);
         this.lblTitle.Text    = a.Title;
         this.lblUserName.Text = a.UserName;
         this.lblTime.Text     = a.PTime.ToString();
         this.liContent.Text   = ReadFile(a.FileName);
     }
     catch
     {
         PrintfError("数据访问错误!");
         return;
     }
 }
コード例 #2
0
ファイル: AfficheMan.aspx.cs プロジェクト: rcw0125/XGWMS
 protected void Page_Load(object sender, EventArgs e)
 {
     // 在此处放置用户代码以初始化页面
     if (!this.Page.IsPostBack)
     {
         try
         {
             if (!string.IsNullOrEmpty(Request["GUID"]))
             {
                 Affiche a = Affiche.GetAffiche(Request["GUID"]);
                 if (a != null)
                 {
                     this.m_txtTitle.Text = a.Title;
                 }
                 readFile(Request["GUID"]);
             }
         }
         catch
         {
             this.PrintfError("数据访问错误!");
             return;
         }
     }
 }