Click or drag to resize
QueryHelperGetSQLSafeText Method

Note: This API is now obsolete.

Returns the value of the specified query string parameter, with dangerous SQL characters (' or patterns) encoded. Returns the default value if the parameter is not present in the URL.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
[ObsoleteAttribute("This method is obsolete use SqlHelper.EscapeQuotes and SqlHelper.EscapeLikeText instead.")]
public static string GetSQLSafeText(
	string name,
	string defaultValue
)

Parameters

name
Type: SystemString
Query parameter.
defaultValue
Type: SystemString
Default value.

Return Value

Type: String
See Also