This question is locked. New answers and comments are not allowed.
Hi,
This is my setup :
- i have an Ajax.BeginForm containing a textbox and a search button.
- I have a partial view "SearchResults" containing my grid
- when clicking on the button, I calling the search action on my home controller, which binds, and then use return PartialView("SearchResult",MyModel) to display the grid in the div set in the ajaxoptions
That works.
But, when I try to sort (or group, or use the pager), since the action is Home/Search , my partialview "SearchResults" is used for the whole page (I'm not on my master page anymore, just on the partial view)
I'm sure I'm doing something wrong (I'm still a beginner in MVC)
Thanks !
This is my setup :
- i have an Ajax.BeginForm containing a textbox and a search button.
- I have a partial view "SearchResults" containing my grid
- when clicking on the button, I calling the search action on my home controller, which binds, and then use return PartialView("SearchResult",MyModel) to display the grid in the div set in the ajaxoptions
That works.
But, when I try to sort (or group, or use the pager), since the action is Home/Search , my partialview "SearchResults" is used for the whole page (I'm not on my master page anymore, just on the partial view)
I'm sure I'm doing something wrong (I'm still a beginner in MVC)
Thanks !