I have a page with Search bar. Once the user hit the GO button the user should be taken to the Search\Index view where the result will be shown.
The button click event correctly sends the request to the Index action in Search controller.
The model is also populated.
After clicking the button, I see the page populated in the Response in FireBug.
Why the page remains on the previous page?
I want the browser to change the URL by doing a refresh.
This action is called via ajax Get Request
[HttpGet]
public ActionResult Index(string keys)
{
//get data from db
//populate model with data from db
return View(model);
}
Am I missing something? I tried to do a RedirectToAction but that fails as that a redirect to itself.