【发布时间】:2011-04-06 00:54:14
【问题描述】:
基本上我想要一个按钮,可以在包含我的http://fake.com/Report/PageFixes... 页面的新窗口中打开一个页面。目前我在表单中有一个按钮,但如果有更好的方法可以做到这一点,那么我也准备好了。
<% using (Html.BeginForm("PageFixes", "Report", new { id = 9 }, FormMethod.Get, new { onSubmit="window.open()" })) %>
<% { %>
<%= Html.CSButton(new ButtonViewData() { Text = "Submit" })%>
<% } %>
【问题讨论】:
标签: c# javascript asp.net asp.net-mvc