Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmPicker & WhereClause
Message
De
04/12/2007 09:56:05
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmPicker & WhereClause
Divers
Thread ID:
01273053
Message ID:
01273053
Vues:
67
I was trying to use the WhereClause property of the mmPicker control and it didn't seem to have any effect. I checked the code and it didnt' look like it was being referenced anywhere except for the property. In case anyone is ineterested, here's my attempt at implementing it.


public override void PerformSearch()
{
string OrigDataCommand = this.DataCommand;

if (!string.IsNullOrEmpty(this.WhereClause))
{
if (this.DataCommand.ToUpper().Contains("WHERE"))
{
this.DataCommand += " AND (" + this.WhereClause + ") ";
}
else
{
this.DataCommand += " WHERE " + this.WhereClause;
}
}
base.PerformSearch();

this.DataCommand = OrigDataCommand;
}

Jeff
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform