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

Explain what is routing in MVC? What are the three segments for routing important?

What is the difference between “HTML.TextBox” vs “HTML.TextBoxFor”?

Explain what is the difference between View and Partial View?