Click or drag to resize
URLHelperMergeQueryStrings Method
Merges two query strings. Query string parameters should (but don't have to) start with question mark but they definitely must omit path part of URL.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string MergeQueryStrings(
	string originalQuery,
	string newQuery,
	bool preferOriginal
)

Parameters

originalQuery
Type: SystemString
Query string to be merged with newQuery parameter.
newQuery
Type: SystemString
Query string to be merged with originalQuery parameter.
preferOriginal
Type: SystemBoolean
If true, parameters from originalQuery takes first priority

Return Value

Type: String
See Also