Решение:

string t = "abCdefijk";
int ind = t.IndexOf("cd", StringComparison.InvariantCultureIgnoreCase);

if ind is -1 then string(in this case t) does not contain given string(in this case "cd")

 

Опубликовано в ASP.NET