Can someone please give me an example on how to populate a second dropdown list in a view based on what is selected is in the first dropdown list (data taken from repository in both cases)
I'm using dotconnect for postgresql EF4.
The 2 fields are:
@Html.LabelFor(model => model.ProductFamilyId, "ProductFamily")
@Html.DropDownList("ProductFamilyId", String.Empty)
@Html.ValidationMessageFor(model => model.ProductFamilyId)
@Html.LabelFor(model => model.ProductTypeId, "ProductType")
@Html.DropDownList("ProductTypeId", String.Empty)
@Html.ValidationMessageFor(model => model.ProductTypeId)
Thanks
example for dropdownlist onchange event
-
- Posts: 15
- Joined: Sat 26 Nov 2011 00:56