ASP.NET MVC 3: Reuse the same form in all the web site?

There are 2 ways to reuse your search form: First is to use Html.RenderAction() at Layout. Cshtml that will render your search form to view. Second is to use Html.RenderPartial() at Layout.

Cshtml and model will pass to view throught ViewBag object or ViewData dictionary from global action flter.

For the search box in your view you can use @Html. Action to call a child action allowing it to build the SearchModel / search view independently from the current action.

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