Builds a query string from a collection, no leading '?'

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public static string BuildQueryString(
	NameValueCollection nvc,
	Encoding encoding
)

Parameters

nvc
Type: System.Collections.Specialized..::.NameValueCollection
The collection containing the query data.
encoding
Type: System.Text..::.Encoding
The encoding to use.

Return Value

The query string with URL encoding, or an empty string (not null)

See Also