title: How to use Session variables asp.net c#
body: <p>I cant seem to pass my variable through to the next page. Can anyone tell me what i am doing wrong?</p>
  
  <pre><code>var finalValue = value * sqlCouponValue;
  finalValue = Math.Round(finalValue, 2);
  Session["discountedOrderTotal"] = finalValue.ToString();
  </code></pre>
  
  <p>where i am trying to call it again on the next page:</p>
  
  <pre><code>e.Row.Cells[4].Text = "$" + Session["discountOrderTotal"];
  </code></pre>
  
  <p>Does anyone have any ideas? I have never used session variables before and am not sure why it is just returning a <code>$</code>. Any help would be much appreciated. Thanks!</p>