CRUD Operation Using Jquery Ajax In ASP.NET MVC
CRUD operation with jquery ajax in asp.net mvc In this post we will discuss about how to do CRUD with the help of jquery ajax. here we will take two file one is .cshtml file and one is .cs file. .cshtml file is our view and .cs file will handle DB operation. In this example I am creating a static list for creating records. I have .cs controller file this file name is JqueryAjaxController.cs. And .cshtml file this file name is Index.cshtml. JqueryAjaxController.cs :- using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using System.Web.Mvc; namespace Learn_mvc.Controllers { public class JqueryAjaxController : Controller { private static List<JAEmp> emps = new List<JAEmp>() { new JAEmp(){ EmpId="101", EmpName="Aman", EmpSalary="1000"}, ...