2012-12-21 32 views

回答

1

只要你改變行動,爲什麼不改變方法呢?

new { onchange = "this.form.method='GET';this.form.action='/Profile/Edit';this.form.submit();" }) 

還是在剃刀/ HTML改變它(我會說這是最好的,因爲它是一般清潔劑,使HTML正確使用開始,而不是在它的Javascript黑客):

@using (Html.BeginForm("Action", "Controller", FormMethod.Get)) 
{ 
    // ... 
} 
相關問題