Case sensitivity

Posted by Community Admin on 04-Aug-2018 21:02

Case sensitivity

All Replies

Posted by Community Admin on 16-Dec-2010 00:00

I'm trying to do a contains query on the page title, but it's only returning me the results if I match the case

var pages = App.WorkWith().Pages()
                    .Where(x => x.Title.Contains(searchValue) && x.ShowInNavigation == true)

How should I be doing this?

(Like if a page name is "Main", searching for "main" gives me nothing.

Posted by Community Admin on 17-Dec-2010 00:00

Hi Steve,

You can use String.ToLower() method and create a local variable that you should pass the the query.

Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed