mvc将状态从控制器发送到视图 [英] mvc send status to the view from controller

查看:115
本文介绍了mvc将状态从控制器发送到视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想在调用删除操作并控制返回索引视图时在索引视图中显示消息记录已成功删除".

如何实现.....

请帮助.


i want to show the message "record deleted successfully" in my index view when delete action is called and control return to index view

how to implement.....

plz help.

推荐答案

将您的消息添加到ViewData并相应地在标记中显示它
Add your message to ViewData and display it accordingly in the markup


这篇关于mvc将状态从控制器发送到视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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