Blog

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

By Deepika Chaudhary Blogs | ASP.NET MVC 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.
Download Files: SampleEmployee.rar
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
COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs