ASP.NET MVC: How to put a create partial view in an index view?

In your Create action methods, you are returning just the Create view, not the whole page. This is because the default behaviour of View() is to return a view with the same name as the action method. Therefore, if you want the Post to return the whole page you need to either specify the correct view name, or even better return a redirect to the Index action.

Eg: return RedirectToAction("Index").

Logically what you are doing is right. However on the submit button of partial create, your entire page should get refreshed. Why is it not happening?

Are you using Ajax to create new record?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions