How to manage states in MVC Application ?

For state management we can use viewbag, viewdata, tempdata and session

We are using viewbag and viewdata for move the data from Controller to View and if we want move data one action to another action then we use Session and Tempdata

Comments

Popular posts from this blog

List out different return types of a controller action method?

3-6 yr Experience Interview Questions in .Net Technologies

Explain what is the difference between View and Partial View?