Rohan

Rohan

  • NA
  • 1.4k
  • 115.5k

Add Two Number . but Cannot be store value

Jul 3 2018 11:17 PM
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Select FeePaid,Refund From FeeDetails";
cmd.Connection = con;
SqlDataReader dr = cmd.ExecuteReader();
{

if (dr.Read())
{
a = dr[0].ToString();
b = dr[1].ToString();
c = a + b;
Label2.Text = c.ToString();

Answers (1)