public void billno()
{
SqlCommand cmd = new SqlCommand("select count(billno) from saletable", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
if(dt.Rows.Count>0)
{
}
}

Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 2, 2018, 7:47 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 2, 2018, 7:02 PM EDT
Anvar S12 reputationPosted Aug 2, 2018, 7:41 PM EDT
Anvar S12 reputationPosted Aug 2, 2018, 7:49 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 2, 2018, 7:54 PM EDT
Anvar S12 reputationPosted Aug 2, 2018, 8:19 PM EDT
Jenith ThakkarRank #789 · 2.9K reputationPosted Aug 2, 2018, 8:34 PM EDT
SqlCommand cmd = new SqlCommand("select MAX(billno) as billno from saletable", con);
Amit GuptaRank #190 · 12.8K reputationPosted Aug 5, 2018, 10:11 AM EDT