C Cirene Jun 4, 2008 #1 I have a databound drop down list. What is the easiest way to put the 1st item as "choose one"? Thanks.
I have a databound drop down list. What is the easiest way to put the 1st item as "choose one"? Thanks.
G Geek Jun 4, 2008 #2 I have a databound drop down list. What is the easiest way to put the 1st item as "choose one"? Thanks. Click to expand... if u did not complete it yet.set the selectedindex property to the 1.
I have a databound drop down list. What is the easiest way to put the 1st item as "choose one"? Thanks. Click to expand... if u did not complete it yet.set the selectedindex property to the 1.
E Eliyahu Goldin Jun 4, 2008 #3 <asp:dropdownlist ... AppendDataBoundItems="true" ..> <asp:ListItem Text="choose one" Value="-1" /> </asp:dropdownlist> -- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
<asp:dropdownlist ... AppendDataBoundItems="true" ..> <asp:ListItem Text="choose one" Value="-1" /> </asp:dropdownlist> -- Eliyahu Goldin, Software Developer Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
C Cirene Jun 4, 2008 #4 thanks everyone ! all great advice! xzzy said: another possibility is in sql server, something like select field01, field02 from tablename union '<< Chose One>>' as aa, -1 as bb from tablename and then .bind in codebehind etc. John Bickmore www.MyReader.net Click to expand...
thanks everyone ! all great advice! xzzy said: another possibility is in sql server, something like select field01, field02 from tablename union '<< Chose One>>' as aa, -1 as bb from tablename and then .bind in codebehind etc. John Bickmore www.MyReader.net Click to expand...