Click or drag to resize
CMSDialogHelperRemoveQueryAndAnchorFromUrl Method
Removes the query string and anchor from the given URL.

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static string RemoveQueryAndAnchorFromUrl(
	string url,
	out string queryAndAnchor
)

Parameters

url
Type: SystemString
The URL to be processed.
queryAndAnchor
Type: SystemString
The cut-off query and anchor removed from the given URL ('?param=1#tag').

Return Value

Type: String
URL without query string or anchor.
See Also