0
我有以下輸入字段我的asp.net mvc的內部: -如何定義HTML輸入內部ActionMethod和控制器名稱
<input type="reset" value="Cancel" class="btn" />
但我怎麼能指定的情況下,該按鈕,用戶點擊返回到當前控制器的Index操作方法?
我有以下輸入字段我的asp.net mvc的內部: -如何定義HTML輸入內部ActionMethod和控制器名稱
<input type="reset" value="Cancel" class="btn" />
但我怎麼能指定的情況下,該按鈕,用戶點擊返回到當前控制器的Index操作方法?
包裝在一個窗體(GET方法,並使其「提交」,而不是「復位」,因爲它基本上是一個鏈接回索引頁):
@using (Html.BeginForm("Index", "MyController", FormMethod.Get))
{
<input type='submit' value='Cancel' class='btn' />
}