之間的依賴我有ASCX文件2選擇字段:的DropDownList
<%=Html.DropDownList("CityID", new SelectList(Model.Cities, "Code", "Name"), new Dictionary<string, object>
{
{"class", "styled"}
})
%>
<%=Html.DropDownList("EstablishmentID", new SelectList(Model.Establishments, "OID", "Name"),
"All Establishment", new Dictionary<string, object>
{
{"class", "styled"}
})
%>
我想這EstablishmentId
變化的值時,用戶在選擇CityID
新的價值。
我該怎麼做?
謝謝。
PS。 ViewEngine是WepPages
。
只是改變Razor視圖來ASPX –
- 斯里納 - 你可以給我一個完整的工作樣本? rick.anderson [at] Microsoft.com – RickAndMSFT
嗨它工作正常瑞克 –