我们如何在MVC中播放数据 [英] How can we diplay data in mvc

查看:142
本文介绍了我们如何在MVC中播放数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在mvc中显示表数据

请在mvc

How can we display table data in mvc

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

推荐答案

Quote:

中发送用于insert,update,delete的代码. >我,

在View ABC中创建一个mvc应用程序添加文件夹.


将视图(创建,更新,删除)添加到ABC.

如果要添加任何验证并进行建模和应用.
现在转到控制器并添加控制器ABCController.

添加用于创建更新和删除的方法,例如

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





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)
{
} 


这篇关于我们如何在MVC中播放数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆