You can use a little javascript to make an ajax call. You can pass data from your UI to your action method.
The below example will post the value of Name input element to the action method when user clicks on the button.
<input type="text" id="Name" />
<input type="submit" id="btnSave" value="refresh" class="questionInput" />
and your javascript is
$(function(){
$("#btnSave").click(function(e){
e.preventDefault();
$.post("@Url.Action("RefreshQuestion","Admin")",
{ name : $("#Name").val() } ,function(data){
// do something with the response
});
});
});
Your action method should have a parameter called name or a view model object which has a name property in it (model binding will do rest).
[HttpPost]
public ActionResult Add(string name)
{
// save and return something
}
You may also use the serialize method as needed to send the data filled in all the items in a form.