@using (Ajax.BeginForm("EditParameterSet", "MRServiceHome", new AjaxOptions { UpdateTargetId = "parameterList" }))
{
@Html.EditorFor(x => x.ControlList)
<input type="submit" id="verifyBtn" value="Verify"/>
}
Where "EditParameterSet" is my controller method, MRServiceHome is my controller, and "parameterlist" is my div.I'm creating controls using partial view.
My controller code is
[HttpPost]
public PartialViewResult EditParameterSet(SttModel model)
{
}
My question is how can i avoid call to the controller if there are any client side validation errors. I'm using my custom validation logic for the client side validation.