How to remove duplicate from database and bind to drop down list?
Example:
I have the data from one of the table in database -> { A,B,C,D,A,B,B,C } .
I just want to bind to my dropdown list { A,B,C,D }.
Can anybody help me in my problem?
Thanks a lot

Abrar Ahmad AnsariPosted May 21, 2015, 1:21 AM
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
List
var uniqueItem = ListItem.Distinct().ToList();
}
}
}
Asp.Net HeinPosted May 21, 2015, 12:30 AM