The text of this article is not in this database — only its details are. Read it on the old site: Implement Insert, Update and Delete Functionality in the WebGrid: Part 2
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Anubhav ChaudharyPosted Oct 13, 2015, 6:47 AM
You are getting error because of not creating table, follow Part 1 of this series.
dhana bPosted Oct 13, 2015, 1:37 AM
am getting error like this, Error 4 'MvcApplication30.MyDatabaseEntities' does not contain a definition for 'IT_Student' and no extension method 'IT_Student' accepting a first argument of type 'MvcApplication30.MyDatabaseEntities' could be found (are you missing a using directive or an assembly reference?) C:\DOTNET_WORKSPACE\MvcApplication30\MvcApplication30\Models\Class1.cs 58 26 MvcApplication30
Anubhav ChaudharyPosted May 29, 2015, 10:20 AM
vivek sharma How would I came to know where you are getting the error and why you are getting it without seeing the code!!
vivek sharmaPosted May 29, 2015, 7:10 AM
it gives me an error that a resource can not be found while debugging
Anubhav ChaudharyPosted Dec 11, 2013, 1:05 AM
Ajax Calls are shown in the last part, you can click on the link provided and can see how I had used them.
Anubhav ChaudharyPosted Dec 11, 2013, 1:04 AM
Because if you are using ActionResult Edit() or ActionResult Delete() etc. then you need to create separate Views for them and they will start working separately instead of working in WebGrid, and no one would like to go to some other page for Editing, Deleting or Inserting that's why JsonResult is used which will be called using the Ajax calls which will help you to do all the work on the same page
Jaima JosephPosted Dec 11, 2013, 12:51 AM
Nice article..very helpful..
Jaima JosephPosted Dec 11, 2013, 12:50 AM
Why you are not using public ActionResult Edit(),public ActionResult Delete() etc.?Is there any advantage or betterment in using JsonResult()?