public static void SendBackToCallingPage(HttpContext context, NameValueCollection additionalParams, params string[] includedParams)
        {
            if (string.IsNullOrEmpty(context.Request.QueryString["ReturnURL"]))
            {
                throw new ArgumentException("To use this method, the requesting querystring must contain a value called 'ReturnURL'.", "context");
            }

            PageRedirect.SendBackToCallingPage(context.Request.QueryString["ReturnURL"], context, additionalParams, includedParams);
        }
 /// <summary>
 /// Performs a redirect to the previously specified page target, including the stored QueryString parameters.
 /// </summary>
 public void Go()
 {
     if (this._curMode == Mode.Redirect)
     {
         PageRedirect.RedirectToPage(this._dest, this._context, this._qsVals);
     }
     else if (this._curMode == Mode.ReturnToCallingPage)
     {
         if (string.IsNullOrEmpty(this._dest))
         {
             if (this._includeQsNames.Count > 0)
             {
                 PageRedirect.SendBackToCallingPage(this._context, this._qsVals, this._includeQsNames.ToArray());
             }
             else
             {
                 PageRedirect.SendBackToCallingPage(this._context, this._qsVals, this._includeQs);
             }
         }
         else
         {
             if (this._includeQsNames.Count > 0)
             {
                 PageRedirect.SendBackToCallingPage(this._dest, this._context, this._qsVals, this._includeQsNames.ToArray());
             }
             else
             {
                 PageRedirect.SendBackToCallingPage(this._dest, this._context, this._qsVals, this._includeQs);
             }
         }
     }
     else
     {
         // Only way this can happen is if somebody messes with the code and
         //   doesn't update this method.  I like to be thorough...
         throw new InvalidOperationException("Redirect mode is not valid.");
     }
 }
 public static void SendBackToCallingPage(string destinationPg, HttpContext context, params string[] includedParams)
 {
     PageRedirect.SendBackToCallingPage(destinationPg, context, null, includedParams);
 }
 public static void SendBackToCallingPage(string destinationPg, HttpContext context, NameValueCollection additionalParams, bool includeQueryString)
 {
     PageRedirect.SendBackToCallingPage(destinationPg, context, additionalParams, PageRedirect.GetQueryStringParamKeys(context.Request));
 }
 public static void SendBackToCallingPage(string destinationPg, HttpContext context, bool includeQueryString)
 {
     PageRedirect.SendBackToCallingPage(destinationPg, context, null, includeQueryString);
 }
 public static void SendBackToCallingPage(HttpContext context, params string[] includedParams)
 {
     PageRedirect.SendBackToCallingPage(context, null, includedParams);
 }
 public static void SendBackToCallingPage(HttpContext context, bool includeQueryString)
 {
     PageRedirect.SendBackToCallingPage(context, null, includeQueryString);
 }
 public static void SendBackToCallingPage(HttpContext context)
 {
     PageRedirect.SendBackToCallingPage(context, true);
 }