LINQ in Action roller

Display data in dropdownlist using LINQ

Hello Experts, I have following code to display data in dropdownlist and displayed successfully, DataClassesDataContext dc = new DataClassesDataContext (); CustomerNameDropDownList.DataSource = dc.mCustomers; CustomerNameDropDownList.DataTextField = "CustomerName" ; CustomerNameDropDownList.DataValueField = "CustomerId" ; CustomerNameDropDownList.DataBind(); now i can display all customer's name in dropdown list. I just want to append the first index value of dropdownlist as - -Select customer name Read More...
Published Thursday, March 27, 2008 9:46 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication