Hi i have a partial view that has a search form, the search form redirects to action "Search" in Controller "Search".. I am using this form in multiple locations but i need the action "Search" in Controller "Search" to pick up where this form is used to perform some actions
_SearchForm (view)
@using (Html.BeginForm("Search", "Search", FormMethod.Post))
{
@Html.TextBox("querySTR")
<input class="btn btn-primary btn-large" type="submit" value="Search" />
<label>@Html.RadioButton("rdList", "rdExact") Exact Term</label>
<label>@Html.RadioButton("rdList", "rdStart", true) Start of Term</label>
<label>@Html.RadioButton("rdList", "rdPart") Part of Term</label>
}
Controller
public ActionResult Search(FormCollection collection) { return RedirectToAction("Index", "Another Controller From where i am now"); }