B
Boban Dragojlovic
Say I have a dropdownlist control of the US State Codes
<asp:dropdownlist id=ddlStateCode ...>
<asp:listitem value="AL">Alabama</asp:listitem>
<asp:listitem value="CA">California</asp:listitem>
etc...
In my codebehind, I have something like this:
ddlStateCode.SelectedValue = UserRecord.StateCode
the problem is that if the UserRecord.StateCode is not in caps, I get an
error. In other words, the 'SelectedValue' property is case sensitive.
I have tried using 'OPTION COMPARE TEXT' but it didn't help.
Is there a way of making it NOT be case sensitive?
<asp:dropdownlist id=ddlStateCode ...>
<asp:listitem value="AL">Alabama</asp:listitem>
<asp:listitem value="CA">California</asp:listitem>
etc...
In my codebehind, I have something like this:
ddlStateCode.SelectedValue = UserRecord.StateCode
the problem is that if the UserRecord.StateCode is not in caps, I get an
error. In other words, the 'SelectedValue' property is case sensitive.
I have tried using 'OPTION COMPARE TEXT' but it didn't help.
Is there a way of making it NOT be case sensitive?