D
David C
I have a DropdownList tied to an SqlDataSource (table) used to select a
single company. I also want 2 options on this list, one for no selection
and one for firing an add new company process. However, when I add 2 manual
items, I get duplicates from the company table for each record in that
table. How can I get around this? Below is the control info.
<aspropDownList ID="ddlCompanyID" runat="server"
DataSourceID="SqlCompanies"
DataTextField="CompanyName" DataValueField="CompanyID"
AppendDataBoundItems="true">
<asp:ListItem Value="0" Text="--None--" />
<asp:ListItem Value="-1" Text="--<New Company>--" />
</aspropDownList>
Thanks.
David
single company. I also want 2 options on this list, one for no selection
and one for firing an add new company process. However, when I add 2 manual
items, I get duplicates from the company table for each record in that
table. How can I get around this? Below is the control info.
<aspropDownList ID="ddlCompanyID" runat="server"
DataSourceID="SqlCompanies"
DataTextField="CompanyName" DataValueField="CompanyID"
AppendDataBoundItems="true">
<asp:ListItem Value="0" Text="--None--" />
<asp:ListItem Value="-1" Text="--<New Company>--" />
</aspropDownList>
Thanks.
David