This means that everywhere within this page comparisons should use text comparison, not binary comparison. Thus "NewsPapers" and "Newspapers" should compare equal. I should not need to use use string.compare(Str1, Str2, False). In fact I'm not sure how
I could use this, since the comparison is not explicit but is implied by the assignment
ddlRefTable.SelectedValue = trcolumns.GCLDetails
BTW, Option Compare is VB specific, there is no C# equivalent as far as I know.
Robert Barne...
Member
451 Points
708 Posts
Re: DropDownList fails (Selected Value not in list) because it is using Compare Binary
Apr 10, 2012 01:26 PM|LINK
As I said in my first posting: -
Line 1 of my aspx.vb page is
Option Compare Text
This means that everywhere within this page comparisons should use text comparison, not binary comparison. Thus "NewsPapers" and "Newspapers" should compare equal. I should not need to use use string.compare(Str1, Str2, False). In fact I'm not sure how I could use this, since the comparison is not explicit but is implied by the assignment
ddlRefTable.SelectedValue = trcolumns.GCLDetails
BTW, Option Compare is VB specific, there is no C# equivalent as far as I know.