0
@using (Html.BeginForm("Index", "Bill"))
{
@Html.Label("FromDate")
@Html.DropDownList("FromDate",Model.DateList)
@Html.Label("ToDate")
@Html.DropDownList("ToDate", Model.DateList)
@Html.ActionLink("Filter", "Index", "Bill") // I want to post to Index
}
[HttpPost]
public ActionResult Index(string fromDate, string toDate)
{
//Process
}
將日期範圍發佈到索引操作的正確方法是什麼?ASP.NET MVC:如何發佈下拉框的值來操作?
我需要指定哪種類型的URL?
我感謝您的回答。