仅按首字母提取 .NET 动态数据 [英] Pulling .NET Dynamic Data by First Letter only

查看:29
本文介绍了仅按首字母提取 .NET 动态数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 jquery 移动站点上生成了一长串动态数据.我希望这些数据用字母列表栏分隔,就像电话的目录组织按第一个字母一样.

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.

另一种选择是仅按首字母调用数据.比如我选择字母A",显示所有以A"开头的数据.

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.

我通过 ASP.NET.vb 重复方法调用名称:<%# Eval("Name")%>

I am calling names via ASP.NET.vb repeated method with: <%# Eval("Name")%>

该代码当然会提取所有名称.如何将范围缩小到特定的字母开头?我是 ASP 和 ASP.NET 的新手;因此,我不太确定从哪里开始或从什么术语开始研究.任何帮助将不胜感激,谢谢.

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.

推荐答案

调用 WHERE 查询中的第一个字母.

Call the first letter within the query of the WHERE.

这篇关于仅按首字母提取 .NET 动态数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆