Link to home
Start Free TrialLog in
Avatar of zhshqzyc
zhshqzyc

asked on

Add a headtext to a dropdownlist

Hi I have a dropdownlist which stores the items from a database.
The code:
<asp:DropDownList ID="Organization" runat="server" DataSourceID="OrganizationList"
                                DataTextField="OrgName" DataValueField="OrgCode">
                            </asp:DropDownList>
                            <asp:SqlDataSource ID="OrganizationList" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnection %>"
                                SelectCommand="SELECT [OrgCode], [OrgName] FROM [Organization]"></asp:SqlDataSource>

Open in new window

Now I am going to add one headtext
"Please Select."

Open in new window

.
How to do it?
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Alfredo Luis Torres Serrano
Alfredo Luis Torres Serrano
Flag of United States of America image

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