Please write Right Query
private int billno(string p)
{
cmd = new SqlCommand();
string bill = cmd(Query, con);
con.Open();
return bill;
con.Close();
}


Rafnas T PRank #280 · 8.8K reputationPosted Apr 18, 2017, 10:47 PM EDT
cmd = new SqlCommand(p, con);
con.Open();
Billno = (Int32) cmd.ExecuteScalar();
con.Close();
return Billno;
Tapan PatelRank #614 · 3.9K reputationPosted Apr 10, 2017, 5:02 AM EDT