Ejemplo n.º 1
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);

            if (!this.IsPostBack)
            {
                litPageTitle.Text = GetLabelText("BlogCategory_Title");
                litBlogCategoryName.Text = GetLabelText("Blogcategory_BlogCategoryName");
                txtBlogCategoryName.ToolTip = GetLabelText("Blogcategory_BlogCategoryName");

                if (Request.QueryString["action"] == "modify")
                {
                    //primary key
                    int BlogCategoryId = DataConvert.GetInt32(Request.QueryString["id"]);

                    Johnny.CMS.BLL.SeH.BlogCategory bll = new Johnny.CMS.BLL.SeH.BlogCategory();
                    Johnny.CMS.OM.SeH.BlogCategory model = new Johnny.CMS.OM.SeH.BlogCategory();
                    model = bll.GetModel(BlogCategoryId);

                    txtBlogCategoryName.Text = model.BlogCategoryName;

                    btnAdd.ButtonType = Johnny.Controls.Web.Button.Button.EnumButtonType.Save;
                    //btnAdd.Text = CONST_BUTTONTEXT_SAVE;
                }

                //RFVldtMenuCategoryName.ErrorMessage = GetMessage("E00801", txtMenuCategoryName.MaxLength.ToString());
            }
        }
Ejemplo n.º 2
0
        protected override void Page_Load(object sender, EventArgs e)
        {
            base.Page_Load(sender, e);

            if (!this.IsPostBack)
            {
                litPageTitle.Text           = GetLabelText("BlogCategory_Title");
                litBlogCategoryName.Text    = GetLabelText("Blogcategory_BlogCategoryName");
                txtBlogCategoryName.ToolTip = GetLabelText("Blogcategory_BlogCategoryName");

                if (Request.QueryString["action"] == "modify")
                {
                    //primary key
                    int BlogCategoryId = DataConvert.GetInt32(Request.QueryString["id"]);

                    Johnny.CMS.BLL.SeH.BlogCategory bll   = new Johnny.CMS.BLL.SeH.BlogCategory();
                    Johnny.CMS.OM.SeH.BlogCategory  model = new Johnny.CMS.OM.SeH.BlogCategory();
                    model = bll.GetModel(BlogCategoryId);

                    txtBlogCategoryName.Text = model.BlogCategoryName;

                    btnAdd.ButtonType = Johnny.Controls.Web.Button.Button.EnumButtonType.Save;
                    //btnAdd.Text = CONST_BUTTONTEXT_SAVE;
                }

                //RFVldtMenuCategoryName.ErrorMessage = GetMessage("E00801", txtMenuCategoryName.MaxLength.ToString());
            }
        }