JQuery Live Search using json with ASP.net

loloilllo

New Member
I have a asp.net application.The requirement is to provide a live search functionality to search a particular list of products.I searched various live search jquery plugins and used this http://nakajima.github.com/jquery-livesearch/In the above mentioned link , the data is in ul li format and then the live search is implemented on that list, so what I did is in the backend, from server side, used a repeater control, like below \[code\] <ul id="names"><asp:Repeater ID="SomeRepeater" runat="server" OnItemCommand="SomeRepeater_ItemCommand" Visible="false"> <ItemTemplate> <li> <asp:LinkButton ID="SomeLink" runat="server" CommandName="Load" CommandArgument='<%# Eval("SomeId")%>' Text='<%# Eval("SomeNameName") + " " + "("+ Eval("SomeCount") + ")" %>'></asp:LinkButton> </li> </ItemTemplate></asp:Repeater>\[/code\]After this in the code behind, binded the repeater control with a List object for the data. After all this the live search functionality was completely working fine with the values in repeater control as ul li.now , the requirement is changed and I need to hide the ul li values which I am binding to repeater control, but want the live search for the same listobject.For this I searched over the internet and got an idea, instead of using the repeater control, let me use a JSon , I am successful in getting the values as a string from the below code \[code\] JavaScriptSerializer jss = new JavaScriptSerializer(); string output = jss.Serialize(newListObject);\[/code\]but the problem is , I cannot use the jquery plugin which I have mentioned above and I am not sure how to do the same search functionality using above json string. Please let me know if my approach is correct also, how to go about achieving the same.
 
Back
Top