Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Login(Request.Url.ToString());
                WebForMain.Master.Qin master = (WebForMain.Master.Qin) this.Master;
                master.HideManu();
                //AsyncFileUpload1.Style.Add("display", "none");
                if (Request.QueryString["type"] != null)
                {
                    try
                    {
                        type = (AppEnum.BlogArticleType) int.Parse(Request.QueryString["type"]);
                    }
                    catch
                    {
                        Response.Redirect("Error.aspx");
                    }
                }

                switch (type)
                {
                case AppEnum.BlogArticleType.Article:
                    fileadd.Style["display"] = "none";
                    filebox.Style["display"] = "none";
                    ltrTip.Visible           = false;
                    break;

                case AppEnum.BlogArticleType.Chart:
                    break;

                case AppEnum.BlogArticleType.File:
                    ltrAddBtn.Text = "+添加文件";
                    break;

                case AppEnum.BlogArticleType.Link:
                    break;

                case AppEnum.BlogArticleType.Picture:
                    ltrAddBtn.Text = "+添加图片";
                    break;
                }
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Login(Request.Url.ToString());
                WebForMain.Master.Qin master = (WebForMain.Master.Qin)this.Master;
                master.HideManu();
                //AsyncFileUpload1.Style.Add("display", "none");
                if (Request.QueryString["type"] != null)
                {
                    try
                    {
                        type = (AppEnum.BlogArticleType)int.Parse(Request.QueryString["type"]);
                    }
                    catch
                    {
                        Response.Redirect("Error.aspx");
                    }
                }

                switch (type)
                {
                    case AppEnum.BlogArticleType.Article:
                        fileadd.Style["display"] = "none";
                        filebox.Style["display"] = "none";
                        ltrTip.Visible = false;
                        break;
                    case AppEnum.BlogArticleType.Chart:
                        break;
                    case AppEnum.BlogArticleType.File:
                        ltrAddBtn.Text = "+添加文件";
                        break;
                    case AppEnum.BlogArticleType.Link:
                        break;
                    case AppEnum.BlogArticleType.Picture:
                        ltrAddBtn.Text = "+添加图片";
                        break;
                }
            }
        }