I’m trying to access a Dictionary in my View . But the following syntax :
@{
var indexList = Viewbag.IndexList as Dictionary<int,long>;
}
doesnt work : The name 'Viewbag' does not exist in the current context
P.S. :Tried placing ‘@’ before Viewbag ,still doesn’t work.
Can someone help ? Thanks in advance
is it not ViewBag?