Hi,
On my page I have a dropdownlist which gets populated by database values from an SqlDataSource(see code)
How can I add my own text or a blank line before the values...
<asp:DropDownList ID="drpClient" runat="server" Width="200px"
AutoPostBack="True" DataSourceID="dsClients" DataTextField="name"
DataValueField="client_id">
</asp:DropDownList>
<asp:SqlDataSource ID="dsClients" runat="server"
ConnectionString="my_connection_string"
ProviderName="System.Data.SqlClient"
SelectCommand="SELECT [client_id], [name] FROM [clients]">
</asp:SqlDataSource>
Thanks,
P.s Is using SqlDataSources recommended or is it better to populate another way?