TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vijay kumar
NA
22
18.9k
MVC4 CRUD with ASPX view Engine & Entity Framework
Apr 22 2014 11:54 PM
I wanted to do CRUD (create,Retrieve,Update and Delete) operations using
ASP.Net MVC 4 with ASPX view engine & Entity framework(.edmx file extension)
I wrote for Showing the data and Inserting it to the Database.
Please tell me how to do it for Update and Delete operations
NorthwindEntities obj = new NorthwindEntities();
public ActionResult Cateview()
{
ViewData["Cate"]=obj.Categories.ToList();
return View();
}
public ActionResult InsertCateview()
{
return View();
}
[HttpPost]
public ActionResult InsertCateview([Bind] Category objcate)
{
obj.Categories.Add(objcate);
obj.SaveChanges();
return RedirectToAction("Cateview", "Cate");
}
Reply
Answers (
3
)
last search result
How To get Client Static IP Address In Asp.net