zhshqzyc
asked on
Add a headtext to a dropdownlist
Hi I have a dropdownlist which stores the items from a database.
The code:
How to do it?
Thanks.
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>
Now I am going to add one headtext
"Please Select."
.How to do it?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.