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
Select Insert Update And Delete(CRUD) With ASP.NET MVC4 -Razor on SAME VIEW
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.


Jaco ZwartsPosted Jan 18, 2016, 7:53 PM EST
Thank you for sharing
Om Prakash SharmaPosted Jul 22, 2015, 4:02 AM EDT
What is this ?????????
Sagar BaruaPosted Jun 7, 2015, 11:25 PM EDT
Very helpful tutorial.I need this type of tutorial. Thanks for share
Loveneet SinghPosted Jan 16, 2014, 10:51 PM EST
Good Job...:)
vilis patelPosted Oct 28, 2013, 6:53 AM EDT
I have use this example for SQL By changes some code.It's really awesome!!!
vilis patelPosted Oct 28, 2013, 6:52 AM EDT
Thanks you very much!!!! :) It help me a lot!!!