Hello all.
I was playing with ASP.NET MVC 1.0 a couple of days ago. I started out with a single table DB named 'Contacts', with very simple structure e.g. Title, FullName, SurName, Email, Phone, Address etc.
I'm using LINQ as my Model.
In my main view I wanted to display a list of alphabets that have matching FullNames starting with that alphabet plus the count of FullNames. Someting similar as shown below:
A - (2)
D - (4)
J - (1)
and so on. One particular thing about the display is that i don't want to display those alphabets that have no names starting with them.
I tried a couple of queries but didn't succeed. Any help to solve this query is appreciated. Please provide the code in VB.NET language.
Thanks.