SqlHelper GetSafeQueryString Method (String, Boolean)Kentico 8.1 API Reference
Returns safe sql query string - escapes apostrophes and optionally escapes wildcard characters _, %, [].

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

input
Type: OnlineSystem String
String to escape
escapeWildcards
Type: OnlineSystem Boolean
Determines whether the wildcards characters should be escaped

Return Value

Type: OnlineString
See Also