[RESOLVED]MVC Model Data

I have a model called Users, I am able to get the data back in the HTTP Post, if I hover over the model when I am debugging I am getting all the Data, in the HTTP [Post].

I want to take the model Data and pass the data to another Method.

I tried this but the issue is I lose all the values past into the HTTP Post?

Is there anyway to keep these values after I do the http Post?

Any ideas or code examples would be helpful.

Thank you.

netdeveloper2013

I want to take the model Data and pass the data to another Method.

I tried this but the issue is I lose all the values past into the HTTP Post?

Please show code.

hi

instead of passing the data to  to some method..i would suggest You to take the data in viewbag or tempdata and access that in your method ..

1. Is the second method is action?. if so
2. If you are doing RedirectToAction to go to the other action.
3. in first method opulate the model from http post and send that model to the second method as a paramater

Leave a Reply