T
tfs
I have a dropdownlist:
<asp:dropdownlist id="recurrance" runat="server">
<asp:listitem value="0" >None</asp:listitem>
<asp:listitem value="1" >Daily</asp:listitem>
<asp:listitem value="2" >Weekly</asp:listitem>
<asp:listitem value="3" >Monthly</asp:listitem>
<asp:listitem value="4" >Yearly</asp:listitem>
</asp:dropdownlist>
I have these stored as the values.
How do I easily display the text portion on my web page (not the
value), so that if I have a value of "3" that I got from my Sql
database, I will display "Monthly". I also want it to display on one
page as the the dropdown and on another page as only text, with no
borders.
Thanks,
Tom.
<asp:dropdownlist id="recurrance" runat="server">
<asp:listitem value="0" >None</asp:listitem>
<asp:listitem value="1" >Daily</asp:listitem>
<asp:listitem value="2" >Weekly</asp:listitem>
<asp:listitem value="3" >Monthly</asp:listitem>
<asp:listitem value="4" >Yearly</asp:listitem>
</asp:dropdownlist>
I have these stored as the values.
How do I easily display the text portion on my web page (not the
value), so that if I have a value of "3" that I got from my Sql
database, I will display "Monthly". I also want it to display on one
page as the the dropdown and on another page as only text, with no
borders.
Thanks,
Tom.