con.Open();
SqlCommand cmd = new SqlCommand("select Description,Tax_ID, Unit_id from Product where Name= '" + producttxt.Text + "'", con);
SqlDataReader sdr = cmd.ExecuteReader();
while (sdr.Read())
{
ProductExists = 1;
dectxt.Text = sdr.GetString(0);
txtqty.Text = sdr.GetString(2);
txttax.Text = sdr.GetString(1);
ProductExists = 1;
}
con.Close();
How to Get Tax_ID & Unit_ID his Values from Tax And Unit Database table......???


Rafnas T PRank #280 · 8.8K reputationPosted Apr 19, 2017, 10:28 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Apr 19, 2017, 9:27 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Apr 19, 2017, 10:01 PM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Apr 19, 2017, 10:09 PM EDT