Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmPicker & WhereClause
Message
From
04/12/2007 09:56:05
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MmPicker & WhereClause
Miscellaneous
Thread ID:
01273053
Message ID:
01273053
Views:
68
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
Next
Reply
Map
View

Click here to load this message in the networking platform