Click here to Skip to main content
15,888,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we display table data in mvc

please send the code for insert ,update ,delete in mvc
Posted

1 solution

Quote:
I,

create an mvc application add folder in View ABC.


Add View(Create,Update,delete) to ABC.

if you want any validation add and model and apply.
now goto controller and add controller ABCController.

add Methods for Create update and delete like


C#
public ActionResult Create()
{
return View();
}

[HttpPost]
public ActionResult Create(CreateModel model, ref CreateStatus)
{
}

public ActionResult Update()
{
return View();
}

[HttpPost]
public ActionResult Update(updateModel model, ref UpdateStatus)
{
}

public ActionResult Delete()
{
return View();
}

[HttpPost]
public ActionResult Delete(DeleteModel model, ref DeleteStatus)
{
} 
 
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