T
tfs
I have a dropdownlist that I was setting to an index (which happened
to be the same as the value). I changed this to a character as that
is what I want to have in my database.
<asp:dropdownlist
style="border:none" id="recurrenceType"
runat="server">
<asp:listitem value="N"
I was setting the value before (when the value was "0", "1" and "2").
It used to work like this:
recurrenceType.SelectedIndex = objDataReader("recurrenceType")
How would I set it with the value set to a char?
Thanks,
Tom.
to be the same as the value). I changed this to a character as that
is what I want to have in my database.
<asp:dropdownlist
style="border:none" id="recurrenceType"
runat="server">
<asp:listitem value="N"
</asp:dropdownlist>None</asp:listitem> <asp:listitem value="M"
Monthly</asp:listitem> <asp:listitem value="P"
Periodic</asp:listitem>
I was setting the value before (when the value was "0", "1" and "2").
It used to work like this:
recurrenceType.SelectedIndex = objDataReader("recurrenceType")
How would I set it with the value set to a char?
Thanks,
Tom.