Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                classID = RequestHelper.GetQueryString <int>("ClassID");

                int linkID = RequestHelper.GetQueryString <int>("ID");
                if (linkID != int.MinValue)
                {
                    CheckAdminPower("ReadLink", PowerCheckType.Single);
                    LinkInfo link = LinkBLL.ReadLinkCache(linkID);

                    TextDisplay.Text = link.Display;

                    URL.Text    = link.URL;
                    Remark.Text = link.Remark;
                }
            }
        }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.classID        = RequestHelper.GetQueryString <int>("ClassID");
         this.LinkClass.Text = this.classID.ToString();
         int queryString = RequestHelper.GetQueryString <int>("ID");
         if (queryString != -2147483648)
         {
             base.CheckAdminPower("ReadLink", PowerCheckType.Single);
             LinkInfo info = LinkBLL.ReadLinkCache(queryString);
             if (info.LinkClass == 1)
             {
                 this.TextDisplay.Text = info.Display;
             }
             else
             {
                 this.PictureDisplay.Text = info.Display;
             }
             this.URL.Text    = info.URL;
             this.Remark.Text = info.Remark;
         }
     }
 }