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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER