|
|
posted on April 13, 2014 05:34
protected static string GenerateQueryStringParameters(HttpRequest request, params string[] queryStringKeys)
{
StringBuilder queryString = new StringBuilder(64);
foreach (string key in queryStringKeys)
{
if (request.QueryString[key] != null)
{
if (queryString.Length > 0)
{
queryString.Append("&");
}
queryString.Append(key).Append("=").Append(request.QueryString[key]);
}
}
return queryString.ToString();
}
-
There are currently no comments, be the first to post one!