AJH.CMS.WEB.UI.Admin.ManageCategory_UC.BeginAddMode C# (CSharp) Method

BeginAddMode() private method

private BeginAddMode ( ) : void
return void
        void BeginAddMode()
        {
            ViewState.Remove(CMSViewStateManager.CategoryID);
            pnlCategoryItem.Visible = true;
            txtDescription.Text = string.Empty;
            txtName.Text = string.Empty;
            txtOrderNumber.Text = "0";
            cddParentCategory.Category = CMSConfig.ConstantManager.CategoryCategory + ViewState[CMSViewStateManager.ModuleID];
            cddParentCategory.SelectedValue = cddParentCategory.PromptValue;
            btnSave.Visible = true;
            btnUpdate.Visible = false;
            pnlCategoryItem.DefaultButton = btnSave.ID;
        }
        #endregion