Reputation: 454
I have two fields in my Shared/~Layout that my user can use to filter information in my entire WebSite. Basically it loads the partial before the @RenderBody, however this partial always is reloaded when the user is redirected to another view, and the values that were selected are lost.
@Html.Partial("_FiltrosTop")
@RenderBody()
I would like to know, if there is a way to keep the values that were selected. I'm using C#, MVC4, ASP.NET, Jquery and KnockoutJS. To load the fields data, I'm currently using Ajax and Jquery.
Upvotes: 1
Views: 306
Reputation: 454
I resolved the problem using Jquery-cookie.
https://github.com/carhartl/jquery-cookie
Thanks all.
Upvotes: 1