sivaL
sivaL

Reputation: 1982

Windows Azure, MVC 4.0 Application how to maintain the state? Is this the best practice to use TempData?

I m working on Windows Azure, MVC 4.0 Application. I want maintain the state between controller and view. I avoided using Session. But I am using TempData. Is this the best practice to use TempData?

Anybody knows Please let me know.

Edited I have filters(that is Lambda expression) in the page. After applying filters, Grid will get populated. While paging I would like to maintain that Lambda expression and apply in order to paging logic work in the server side. I m not able to pass in to the model. I am using MVC kendo grid Ajax paging. Thats the why I am using TempData.

what happens when we have more than one webserver? Will the TempData get lost?

Upvotes: 1

Views: 743

Answers (1)

marcind
marcind

Reputation: 53183

TempData uses Session by default so that's probably not what you want. Could you explain in more detail for what purpose and how long you want to maintain this state?

Upvotes: 1

Related Questions