我将begin / end form语句放在布局页面中,这样我就不用在几页上重复了.以下是代码的简化版本.
@using(Html.BeginForm()) { @RenderBody() <input type = "submit" name = "nextButton" value = "Next-->" /> }
事情运作良好不幸的是,我有一个页面有几个“删除”按钮.我想为每个删除按钮生成一个表单,以便它可以将要删除的项目的ID发送回控制器.
我可以这样做,知道还有另一种形式吗?
感谢帮忙
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。