none
Build a Program Now code problem RRS feed

  • Question

  • Chapter 8 of Build a Program Now has code to use a Linq Query when you click a button.  However, when I build and run the program and click the button, the following error message is generated: NotImplementedException was Unhandled.  I've run the progam using visual basic 2008 and 2010.... same result.

    Here is the code that is causing the problem (any ideas what the problem is?):

    Private

     

    Sub tsbFilterByCarType_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbFilterByCarType.Click

     

    Dim filteredByCarType = From Listing In Me.CarTrackerDataSet.Listing _

     

    Join CarType In Me.CarTrackerDataSet.CarType _

     

    On Listing.CarTypeID Equals CarType.CarTypeID _

     

    Where CarType.CarTypeName.ToLower() Like _

     

    "*" & Me.tstbFilterByCarType.Text.ToLower() & "*" _

     

    Select Listing

     

    Me.ListingBindingSource.DataSource = filteredByCarType

     

    End Sub

    Friday, July 16, 2010 1:54 AM

Answers