我的Index.cshtml包含以下代码:
@using (Html.BeginForm("DownloadPage", "Home", FormMethod.Post, null))
{
<input type="submit" value="Download"/>
}
Sample.cshtml包含如下代码:
@model string
<h1>@Model<h1>
当我按下Index.cshtml上的按钮时,我想下载Sample页面,就像我单击鼠标右键并选择&#39;另存为...&#34;线。怎么做?