public static void ClearQueryString(HttpContext context, string queryStringValues)
        {
            NameValueCollection nvCol = new NameValueCollection();

            string[] pairs = queryStringValues.Split('|', ',', ' ', ';', '&');
            for (int i = 0; i < pairs.Length; i++)
            {
                string[] val = pairs[i].Split('=');
                if (val.Length < 2)
                {
                    throw new ArgumentException("Specified query string values is not in an allowable format.");
                }
                nvCol.Add(val[0], val[1]);
            }
            PageRedirect.ClearQueryString(context, nvCol);
        }
 public static void ClearQueryString(HttpContext context)
 {
     PageRedirect.ClearQueryString(context, string.Empty);
 }