I want to pass the Html.Textbox value to a controller from anchor tag, so that I can search the value passed to a controller. Please tell me how can I achieve this.
<a href="@Url.Action("Index", "Home", new { })">@p</a>
public ActionResult Index(string String)
{
}
@Html.TextBox("String")