if (weight > 1 && weight <= 1.5)
{
var amount = db.tblamounts.SingleOrDefault(x => x.id == 3);
sprice = amount.amount.ToString();
}
the value sprice is 100.00 after debugging
now i have stored that sprice in session
Session["price"] = sprice;
after thatt this session has been stored in viewdata
ViewData["amount"] = Session["price"];
but when i am trying to show viewdata in my view it is showing 00
@Html.Label(ViewData["amount"].ToString(), new { @class = "display", style="margin-left:40px;"})
Thanks in advance
Views:
9805
Total Answered:
2
Total Marked As Answer:
0
Posted On:
15-Jul-2015 23:34