Пример #1
0
 private void LoadDataEdit()
 {
     try
     {
         ArticleCategory obj          = new ArticleCategory();
         int             CateID       = Globals.GetIntFromQueryString("CateID");
         int             ParentCateID = obj.GetParentCategoryIDByCategoryID(CateID, t);
         string          LangEdit     = Globals.GetStringFromQueryString("Lang");
         DataSet         ds           = obj.GetCategoryByCategoryID("ArticleCategory", CateID, LangEdit);
         ddlLanguage.SelectedValue = LangEdit;
         CommonDropDownList objDDL = new CommonDropDownList();
         objDDL.LoadDropDownListArticleCategory(ddlCategory, LangEdit, "Root", t);
         ddlCategory.SelectedValue = ParentCateID.ToString();
         txtCategoryName.Value     = Convert.ToString(ds.Tables[0].Rows[0]["CategoryName"]);
         txtCategoryOrder.Value    = Convert.ToString(ds.Tables[0].Rows[0]["CategoryOrder"]);
         //
         ddlLanguage2.SelectedValue = ddlLanguage.SelectedValue;
         LoadTreeViewCategory(TreeViewCategory, ddlLanguage2.SelectedValue);
     }
     catch { }
 }