SelectParameters

Posts   
 
    
dmbaer
User
Posts: 2
Joined: 02-Nov-2007
# Posted on: 02-Nov-2007 21:05:43   

I am using a self-servicing LLBLGenDataSource on a webform that I am creating. The datasource pulls out all of our customer's info. I would like to implement a name search on the form by making a text box and adding the text box to the selectparameter property. My problem is that I can't figure out how to use wildcards in the selectparameter property. Example: The user types "Jo" into the name search field and the program handles the event to return all names the begin with "Jo" like "Josh" "John" "Joe" etc... Thanks in advance for any help.

Posts: 254
Joined: 16-Nov-2006
# Posted on: 03-Nov-2007 22:56:07   

There is no way to do this declaratively as far as Im aware.

You can certainly use the FilterToUse property of the data source control to create a predicate of this type e.g. using FieldLikePredicate