*blanket disclaimer, don't slap me...*
New to NetTiers....
I am attempting to "Filter" data from an EntityDataSource via user input (textBox) and am for certain I am missing something blatant here...
<
asp:TextBox ID="TermTextBox" runat="server" Columns="45" MaxLength="50"></asp:TextBox><asp:Button runat="server" ID="SearchButton" Text="search" OnClick="SearchButton_Click" />
<atlas:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server">
<atlas:AutoCompleteProperties Enabled="true" MinimumPrefixLength="1" TargetControlID="TermTextBox" ServicePath="~/Services/GlossaryService.asmx" ServiceMethod="GetFilteredTerms" />
</atlas:AutoCompleteExtender>
<br />
<br />
<table style="width: 100%;">
<tr>
<td style="width: 600px;">
<asp:DataList runat="server" ID="GlossaryDataList" DataSourceID="GlossaryDataSource1">
<ItemTemplate>
<strong><%# Eval("Term") %></strong> - <%# Eval("Definition") %>
<br />
<br />
<hr style="width: 100%; height: 1px; border: dotted 1px #C0C0C0;" />
</ItemTemplate>
</asp:DataList>
<data:GlossaryDataSource runat="server" ID="GlossaryDataSource1" SelectMethod="GetAll">
</data:GlossaryDataSource>
<br />
<br />
</td>
<td style="width: 150px;">
<atlas:UpdateProgress ID="GlossaryProgressPanel" runat="server">
<ProgressTemplate>
<img src="../Images/loading.gif" alt="Loading" />One moment... The Glossary is loading.
</ProgressTemplate>
</atlas:UpdateProgress>
</td>
</tr>
</table>
protected
void SearchButton_Click(object sender, EventArgs e)
{
GlossaryDataSource1.Filter = string.Format("Term LIKE '{0}%'", TermTextBox.Text);
}
The page loads great, I have data, the AutoComplete Service kicking like a charm, have even eliminated it to test bare bones, postback SearchButton_Click method fires, Filter property is set for GlossaryDataSource1 when stepping through code, but data is not filtered...
I even tried disabling viewstate on the DataList and calling both the GlossaryDataSource1.DataBind() and the GlossaryDataList.DataBind() methods after applying the Filter to the DataSource, all no go. I even saw something about Filter and EnablePaging and EnableSorting set to false in intellisense of the .Filter method, no avail.
It has to be something right in front of me, I can feel it...
Many thanks in advance...
RA