Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete 213 posts 285 karma points
    Jan 04, 2013 @ 14:18
    Pete
    0

    Razor Where Contains Case sensitive?

    Anyone know of a work around for using Where Contains so it ignores case?

    E.g I have a field with a value of Alpha.

    Contains finds "Alpha" but not "alpha".

    Thanks

    Pete

  • Grant Thomas 291 posts 324 karma points
    Jan 04, 2013 @ 16:41
    Grant Thomas
    0

    Do comparisons on normalised values, so use string.ToUpperInvariant() on the input and comparatives.

Please Sign in or register to post replies

Write your reply to:

Draft