My index view : have text, subtext, and result
<div class="control-group">
@Html.LabelFor(m => m.Result, new { @class = "control-label" })
<div class="controls">
@Html.TextBoxFor(m => m.Result, new { @class = "span6" })
</div>
</div>
My Homecontroller have Action Index
[HttpPost]
public ActionResult Index(HomeViewModel vm)
{
var input = vm.Text;
var subText = vm.SubText;
IMatchString mString = new MatchStringProvider();
string result = mString.MatchString(input, subText).ToString();
vm.Result = String.IsNullOrEmpty(result) ? "no matches" : result;
return View(vm);
}
when i post data to action Index and return the view but textbox of result not display the result what did i do wrong, help me fix this problem