I have an arraylist that binds to a dropdownlist.
My problem is that I use the data from the arraylist more than once for different things...
when I use the data for the dropdownlist I need to prefix the options with a Please Select as the first entry within the arraylist.
I have tried the following,
arraylist test = new
this gets the data for the dropdownlist..
as the dropdownlist needs the first option to be please select I have used a listitem within the markup template, shown below. this doesnt render? i guess the databind overwrites this..??
<asp:DropDownList ID="test" runat="server">
any suggestions how I can prefix the arraylist when I use the data for the dropdownlist with a listitem? thanks