example for dropdownlist onchange event

example for dropdownlist onchange event

Postby 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)

Posts: 15
Joined: Sat 26 Nov 2011 00:56

Postby Shalex » Mon 30 Jan 2012 10:14

This question exceeds the goals of our support (not EF-provider specific).
Devart Team
Posts: 7654
Joined: Thu 14 Aug 2008 12:44

Return to dotConnect for PostgreSQL