PC Review


Reply
Thread Tools Rate Thread

C# First Letters list then query to display all items with that le

 
 
Frederic Hutow
Guest
Posts: n/a
 
      16th Mar 2008
I am trying to build a web site using C# 2005 and msSQL, and I am trying to
build a page that displays for products :

A B C D E F G ... Z #

If there is something an item starting with the letter A (for example), the
A would be in BOLD and selectable (same thing for the other letters, # is for
all others).

Once the user click on the starting letter, it would display in a gridview,
all the items that begins with that letter.

The table name is "products" and the fields are "ID", "Name", "Category" and
"Cost". The field to check is "Name".

My questions are:

What is the best way to implement the A ... # line that check with the
database to see if there is any?
What SQL query should I do this?
What controls should I use?
Can you give me an example or an idea of how to do things?

Thanks,

Frederic Hutow
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display List Box Items Selected =?Utf-8?B?Qm9iYnllIFI=?= Microsoft Access Form Coding 6 23rd Oct 2007 01:14 AM
formula to display first and last items of a list alfred.cloutier@gmail.com Microsoft Excel Worksheet Functions 2 15th Feb 2007 07:19 PM
how do i display multiple items from list box =?Utf-8?B?Rmxv?= Microsoft Access Macros 1 4th Jun 2005 07:32 PM
display items selected in a list John Microsoft Access Form Coding 2 17th Nov 2003 08:56 PM
Drop down list - Display only items Cleus Microsoft ASP .NET 1 28th Oct 2003 01:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:37 AM.