在同一页面上创建和编辑 [英] Create and Edit on the same page

查看:87
本文介绍了在同一页面上创建和编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:

这就是我在asp.net mvc 5上的一个项目,我需要将创建,编辑和索引页合并为一个,我已经做到了,但是现在,当我选择我桌子上的条目进行编辑时,表单只会为我添加一个新条目,不要编辑我的,我已经尝试将条目的id发送到我的控制器 FormCollection,但它也没有工作,请,我需要一些帮助,问候,谢谢....

Hi, everyone:
Here is the thing, I am working on a project in asp.net mvc 5, and i need to merge the create, edit and index page into one, I already did that, but now, when I'm choose the entry on my table to edit it, the form only adds me a new entry, don't edit mine, I already tried to send the id of the entry to my controller using "FormCollection", but it isn't working either, please, I need some help, Regards, and Thanks....

推荐答案

索引,创建和编辑是视图。我认为你需要PartialViews将多个视图添加到一个页面。
Index, Create and Edit are Views. I think you need PartialViews to add multiple Views to one page.


这篇关于在同一页面上创建和编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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