Example #1
0
 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;
     }
 }
Example #2
0
 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;
         }
     }
 }