Page 1 of 1

example for dropdownlist onchange event

Posted: Sat 21 Jan 2012 06:31
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

Posted: Mon 30 Jan 2012 10:14
by Shalex
This question exceeds the goals of our support (not EF-provider specific).