I have a traffic rss feed which I want to filter when a user enters some text in the text box. For example, if the user enters “Leicester” in the search box then only data containing “Leicester” in the “Tile” OR “Desscription” with be displayed.
Can anyone help please?
<asp:DataList ID="dl_traffic" runat="server" DataSourceID="Xml_1" style="font-family:Arial;font-size:14px;margin-left:2px">
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#EFF3FB" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<ItemTemplate>
<asp:HyperLink ID="hy_title" runat="server" Text='<%#XPath("title")%>' NavigateUrl='<%#XPath("link")%>' ToolTip="Click to open details" Target="_blank" style="font-weight:bold;text-decoration:underline" CssClass="hyperTitle" ></asp:HyperLink>
<br />
<span style="font-style:italic;font-size:11px"><%#XPath("pubDate")%></span>
<br />
<br />
<%#XPath("description")%>
<br />
<br />
</ItemTemplate>
</asp:DataList>
<asp:Textbox ID="tbx_traffic_search" runat="server" style="color:white;background-color:#6b80f8;width:150px;height:15px;font-size:12px;margin-top:1px" CssClass="rounded" />
<asp:XmlDataSource ID="Xml_1" runat="server" DataFile="http://hatrafficinfo.dft.gov.uk/feeds/rss/UnplannedEvents.xml" XPath="/rss/channel/item" EnableCaching="False"></asp:XmlDataSource>