【发布时间】:2011-12-20 03:47:46
【问题描述】:
我正在为我的 Web 应用程序使用 ASP.NET MVC3。为了在用户界面中显示一个按钮,我在 View1.cshtml 中使用了以下 html。
<div class="demo">
<input type="submit" value="Save" title="Click here to create a comment" />
<input type="button" value="Cancel" onclick="location.href='/'" title="Click here to cancel and go back to main menu" />
</div>
我想放置一个按钮,以便用户可以返回上一页。因此,为了实现这一点,我想在 .cshtml 中放置一个按钮,该按钮采用 View Name 并且可以
- 转移到特定视图。 (或)
- 转到上一个视图。
以上任何一项都适合我的申请。
我该怎么做?任何帮助或想法都会对我有用。
谢谢
【问题讨论】:
标签: asp.net-mvc-3