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

By Deepika Chaudhary Nov 29 2012
This sample allows to perform the basic CRUD functionality on same page using mvc with razor engine with the help of jquery and partial views.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 10.9k
  • 0
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.

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.

Deepika chaudhary