title: Adding two label values and then inserting the result in a table
body: <p>I want to add two values that are stored in two labels(mostly decimal values) and then insert it into a table using sqlcommmand.Here is my code:</p>
  
  <pre><code>      protected void Button1_Click(object sender, EventArgs e)
  {
      double balance;
      double reward;
      Session["FinalBalance"] = (double.TryParse(lblBalance.Text, out balance) + (double.TryParse(lblReward.Text, out reward)).ToString());
      lblFinal.Text = Session["FinalBalance"].ToString();
      string CS = ConfigurationManager.ConnectionStrings["ABCD"].ConnectionString;
      using (SqlConnection con = new SqlConnection(CS))
      {
          con.Open();
          SqlCommand cmd = new SqlCommand("Insert into tblRegister('Balance') values('@FinalBalance')", con);
          cmd.Parameters.AddWithValue("@FinalBalance", Session["FinalBalance"].ToString());
      }
  
  
  }
  </code></pre>
  
  <p>Now what happens is,it doesnt insert the sum into the table.So i checked the sum by passing its value to a label and its gives out 'TrueTrue'.I guess it is giving out boolean results.How do i go about it?</p>