Select Insert Update And Delete(CRUD) With ASP.NET MVC4 -Razor on SAME VIEW

In this article we will learn how to perform CRUD operations in an ASP.Net MVC application for same view.

I have used the oracle db on this sample. You can  use sqlserver also.

You can create table TB_Employee with three fields.
FNAME,LNAME,EMPID


I had created three partialview in this sample application.
Add,Edit and List under views\home folder.
And there is one view Index.cshtml where i have called the List.cshtml(PartialView).

There are four model each for insert,update,delete and list.

Using jquery and css i have implemented this sample code.
Please give proper reference for jquery and scripts on List.cshtml to make this sample work on your local machine.


Thanks,
Deepika chaudhary