Pulling .NET Dynamic Data by First Letter only

一世执手 提交于 2019-12-13 03:56:40

问题


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.

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.


回答1:


Call the first letter within the query of the WHERE.



来源:https://stackoverflow.com/questions/5856909/pulling-net-dynamic-data-by-first-letter-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!