protected void BindingData(int CatId) { ProductCategoryController ch = new ProductCategoryController(); ProductCategory dt = ch.GetCategoryByCatID(CatId); if (dt != null) { txt_cat_name.Value = dt.Product_Category_Name; txt_cat_name_en.Value = dt.Product_Category_Name_En; txt_cat_desc.Value = dt.Product_Category_Desc; txt_cat_desc_en.Value = dt.Product_Category_Desc_En; isActive.Checked = Convert.ToBoolean(dt.IsActive); txtSelectedFile.Value = dt.Product_Category_Image; txtOrder.Value = dt.Product_Category_Order.ToString(); if (!string.IsNullOrEmpty(dt.Product_Category_Image)) { img.Visible = true; img.ImageUrl = "/" + dt.Product_Category_Image; } else { img.Visible = false; } hdfImage.Value = dt.Product_Category_Image; if (dt.Product_Category_CatParent_ID.ToString() == "0") { cbIsParent.Checked = true; } cb_P_catID.SelectedValue = dt.Product_Category_CatParent_ID.ToString(); } }