Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I would like to Add,Edit, Delete things to be done in Same View in MVC 4.0.



I am able to do this using different Action methods and View, but i want to do this in same view.
Please suggest me.


Thanks in advance
Posted
Updated 11-Mar-14 19:25pm
v2
Comments
SwarupDChavan 12-Mar-14 1:49am    
Implement the edit functionality with the dialog box,for delete show a simple confirm message no need for a seperate view

You can use PartialView when you click on Edit, Save and Delete button your action method will return a correspond partialview.

How to use PratialView? visit below links:

CRUD Operations using Partial View and jQueryUI in ASP.NET MVC4 - Part 2[^]

Using Multiple Models in a View in ASP.NET MVC 4 / MVC 5[^]
 
Share this answer
 
Comments
Prasad Avunoori 23-Mar-14 23:21pm    
Thank you, Snesh. This is what i am looking for.

Thank you so much.
Snesh Prajapati 23-Mar-14 23:32pm    
Most welcome !!
 
Share this answer
 
http://www.c-sharpcorner.com/UploadFile/1492b1/complete-end-to-end-crud-operations-using-knockout-js-and-en/

http://www.c-sharpcorner.com/UploadFile/cd7c2e/implement-insert-update-and-delete-functionality/[^]
 
Share this answer
 
You can use CRUD operations in the ADO.NET Entitymodel
Also you can make the views as strongly typed with the respective class and use the schaffolding templates...
Hope you accept if this helps..
Thank you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900