Author: Dan Minor | Posted on: 10/30/2008 11:39:46 AM | Views : 342

I have 2 cascading dropdownlists and am attempting to bind the child dropdownlist to the parent one.  I found the following code online that should rectify my issue, but need assistance utilizing it, as I am using Linq to SQL. 

Protected Sub ddlContact1_DataBound(ByVal sender As Object, ByVal e As EventArgs)
        Dim ddl As DropDownList = CType(sender, DropDownList)
        Dim frmV As FormView = CType(ddl.NamingContainer, FormView)
        If Not frmV.DataItem Is Nothing Then
            Dim strCity As String = CType(frmV.DataItem, DataRowView)("contactcode")
     &nb ...

Go to the complete details ...