public void fill_state() { Product_State ac2 = new Product_State(); DropDownListVaziat.DataValueField = "id"; DropDownListVaziat.DataTextField = "title"; DropDownListVaziat.DataSource = ac2.Select_All(); DropDownListVaziat.DataBind(); }
void fillDR() { Product_State ac = new Product_State(); DropDownList1.DataTextField = "title"; DropDownList1.DataValueField = "id"; DropDownList1.DataSource = ac.Select_All(); DropDownList1.DataBind(); }
private void FillGrid() { GridView1.DataSource = ac.Select_All(); GridView1.DataBind(); }