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