0
這是我一直想:有沒有辦法使用dropdownlist和onchange調用get而不是post?
@Html.DropDownList("DropDownValue", new SelectList(ViewBag.sellectedSubjects, "text"), "select one", new { onchange = "this.form.action='/Profile/Edit';this.form.submit();" })
這工作,但它會調用POST,而不是編輯GET,因爲我想。我怎樣才能做到這一點?