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 PPosted Apr 19, 2017, 2:47 AM
cmd = new SqlCommand(p, con);
con.Open();
Billno = (Int32) cmd.ExecuteScalar();
con.Close();
return Billno;
Tapan PatelPosted Apr 10, 2017, 9:02 AM