0
我想使用表單集合,這就是我用來提交表單。表單收集項目作爲空
<%=Html.ActionLink("Update", "Calendar", ViewData["sub"], new { onclick = "this.form.submit();" })%>
只是爲了它,我試圖用dropdownlist替換它,保留其價值,突然之間我得到我所有的表單集合。
<%=Html.DropDownList("dllMonth", new SelectList(new List<string>() { "January",
"Feburary", "March", "April", "June", "July", "August", "September", "October", "November", "December"}, ViewData["Month"]), new { onchange = "this.form.submit();" })%>
有人可以請解釋發生了什麼事嗎?
所以紀念你的答案被接受! – darasd 2009-09-01 13:34:58