I have a search bar on my Home-Index page:
<p>
Find by name: @Html.TextBox("SearchString")
<input type="submit" value="Search" />
</p>
I need to submit this string into my code controller and take the user to the Code-Index page using the code controller, rather than the home controller. It seems the parameter is not enough for it to pick it up:
public ViewResult Index(string sortOrder, string searchString)
{
}
How would I go about this?