protected void TxtCountry_TextChanged(object sender, EventArgs e) { if (TxtCountry.Text == "") { SupplierGrid.DataSource = suppAdapter.GetSuppliers(); SupplierGrid.DataBind(); } else { SupplierGrid.DataSource = suppAdapter.GetSuppliersByCountry(TxtCountry.Text); SupplierGrid.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { SupplierGrid.DataSource = suppAdapter.GetSuppliers(); SupplierGrid.DataBind(); }