I have a long list of dynamic data being generated on a jquery mobile site. I’d like to have this data be separated by alphabet list bars, much like the directory organization of a phone by first letter. (ex: jQuery Mobile: Demos and Documentation)
Another option would simply be to only call the data by first letter. For example, I select the letter “A”, and all the data that starts with “A” displays.
I am calling names via ASP.NET.vb repeated method with: <%# Eval(“Name”)%>
That code of course pulls all names. How can I narrow it down to specific letter starts? I am new to ASP and ASP.NET; therefore, I’m not quite sure where to start or what terminology to start researching. Any help would be greatly appreciated, thank you.
I am pulling content from a Microsoft SQL database.
It is just being read via a Repeater.
My current set up can be seen below:
What do you think?
I appreciate your help.
Hi,
You must be using sql statement in your SqlDatasource1. If so or no, try using "SELECT Name, Room FROM [your table] WHERE NAME LIKE ‘A%’ ". Later, you can replace your SQL with dynamic value for ‘A’, ‘B’ etc. Do not fetch all the data from database and filter on client side.
Providing full source can be of much help.