example for dropdownlist onchange event

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Posts: 15
Joined: Sat 26 Nov 2011 00:56

example for dropdownlist onchange event

Post by akash.hegde@gmail.com » 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)


Site Admin
Posts: 8245
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 30 Jan 2012 10:14

This question exceeds the goals of our support (not EF-provider specific).

Post Reply