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?
我感谢您的回答。