ASP.NET if array has string


This question already has an answer here:


String.Contains could well work here.

if (newDepartment.Contains(department)) {
// the substring is in the big one.

Try if (departmentArray.Contains(department)) ...

Need Your Help

Crystal Reports Loading Database info

crystal-reports crystal-reports-2011

I have SAP Crystal Reports 2011 and use it to edit reports we use with JobBOSS ERP system. These reports were all put in place before I started here and am just now learning Crystal Reports. I am

XAML build error on VB.NET project with controls from external DLL

c# wpf xaml controls

I'm trying to migrate a WPF Application based on C# to identical project but based writed in VB.NET.