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.
use jquery
@Html.TextBox("String", null, new { @class="txtString" })
@p
then in your script
$('.txtString').on('blur', function(){
$('.linkAction').attr('src', '@Url.Action("Index", "Home", new { text = "----" })'.replace("----", $('.txtString').val()));
});