vendredi 8 mai 2015

Reading Session value in View MVC

I have a Session in my Controller as follow

Session["Fulldata"] = data;

Which stores data like Name,Id,City etc;

It stores multiple rows of such data.

How how do I access or check if any row has particular Name in it, in the View?

eg :

@if(Session("Fulldata").has("ABC"))
{
   //Do Something
}

I want to check Name for each row in Session. Any help will be appreciated

Aucun commentaire:

Enregistrer un commentaire