public void Load_DDL_Category() { DDL_TheLoai.Items.Clear(); DDL_TheLoai.DataSource = ToolsAdmin1.Load_Category().Tables[0]; DDL_TheLoai.DataValueField = "ID"; DDL_TheLoai.DataTextField = "Category_Name"; DDL_TheLoai.DataBind(); DDL_TheLoai.Items.Insert(0, ""); DDL_TheLoai.Items[0].Value = "0"; }
public void Load_Grid_Category() { Grid_Category.DataSource = ToolsAdmin.Load_Category().Tables[0]; Grid_Category.DataBind(); }