When I submit the partial view by either keeping the textbox filled/empty, in both cases full view is loading. How can I call Ajax to post it?
问题 I have Area in MVC3 as mentioned below. Model public class AdminModule { [Display(Name = "MyName")] [Required(ErrorMessage = "MyName is missing")] public String MyName { get; set; } } I have Partial View with following code. @model _1.Areas.Admin.Models.AdminModule @using (Ajax.BeginForm(new AjaxOptions { UpdateTargetId = "myForm" })) { @Html.LabelFor(i => i.MyName) @Html.TextBoxFor(i => i.MyName) @Html.ValidationMessageFor(i => i.MyName) <p id="getDateTimeString"> </p> <input type="submit"