How to take current input value and using it in the same view(C# MVC)?


    <input type="text" id="investorinfo" name="investorinfo" />
    <button type="submit" class="btn_1 medium">Search</button>

I try to take a string from the input and when the user press search button I wanna use it as searchparameter you see below code block.

I tried to use js but I have to pass it in c# code block in view but couldnt make it.

@Ajax.ActionLink("Search", "ListCity", "Home", new { searchparameter = "inputfrominvestorinfo" }, new AjaxOptions() { HttpMethod = "GET", InsertionMode = InsertionMode.Replace, UpdateTargetId = "Citys" }, new { @class = "form-control", @style = "color:pink" })