Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 need to show the data if i click the first letter

Author  Topic 

celv
Starting Member

6 Posts

Posted - 2015-05-07 : 08:10:08
need to show the data if i click the first letter using asp.net using c#

i bind the data in dropdown list if i press a i need to show the data start from a'


like a i press


ambika

ani

abi

like this i need to show using dropdown

celv

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2015-05-07 : 08:44:17

Your where clause should be

WHERE col like 'a%'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2015-05-07 : 15:08:10
Normally those sort of predictive-text dropdowns are set to a minimum of 3 characters before they provide any answers, to reduce the number of hits on the database. But other than that the query is as Madhi has described.
Go to Top of Page
   

- Advertisement -