What I would do here is create a search results document type, template and controller derived from RenderMvcController which will accept the search term from the query string, perform the search and return the results in a view model to the results page for display.
Then in your SurfaceController post method, simply create the URL to the search results page, passing the search term as a query string parameter, and call the Redirect method for it.
Can I send Data to umbraco page from controller
I cant pass my "filtered search results list" to view. please help me.
Hi hakan.
What I would do here is create a search results document type, template and controller derived from RenderMvcController which will accept the search term from the query string, perform the search and return the results in a view model to the results page for display.
Then in your SurfaceController post method, simply create the URL to the search results page, passing the search term as a query string parameter, and call the Redirect method for it.
Hope this helps.
Hi hakan,
Do you have a view called SearchResults?
is working on a reply...