Insert Data using Jquery in ASP.NET Mvc2
Its simple single form page which includes - Fullname - Age - Save Button On Save button click , you will get message using JQUERY in ASP.NET MVC2 Models : [Serializable ] public class UserModels { public string Name { get ; set ; } public int Age { get ; set ; } public string message { get ; set ; } } Controller : public ActionResult Index() { return View(); } [HttpPost ] public ActionResult Save( UserModels inputModel) { string message = string .Format( "Created user '{0}' in the system." , inputModel.Name); return Json( new UserModels { message = message }); } Views : <asp : Content ID ="Content2" ContentPlaceHolderID ="MainContent" runat ="server"> < script type ="text/javascript"> ...