Link to home
Start Free TrialLog in
Avatar of watherton
watherton

asked on

empty field in dropdown

Hi guys,

need to know how I create an empty or 'Please select' entry in a drop down list that is populated from a dataset.

I have the following, but it does not seem to work

dd.Items.Add("Please select");
dd.DataSource = dataset;
dd.DataTextField = "Code";
dd.DataValueField =   "Value";
dd.DataBind();

Cheers

Wayne
ASKER CERTIFIED SOLUTION
Avatar of laurens76
laurens76

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of watherton
watherton

ASKER

great stuff lauren