How to refresh currentpage with specific querystring value (c#)
<p>I have a problem with a simple error notification when I delete a specific product.</p>

<p>I have one page products.aspx
I have 2 categories
      - Mobile (cat 1)
      - Net (cat 2)</p>

<p>When i delete a specific product from a specific category I have a notification coming up "your product has been deleted..." and then after 2 sec, I want the current page to refresh, so the new and correct number of products is shown. My problem is, that I am requesting querystring "deleteid", while deleting the product, and then my querystring with "categoryid" is, of course, 0.
All in all i need "products.aspx?categoryid=2" to refresh, but categoryid is ofc 0, when requesting "deleteid".</p>

<p>I got this so far, hope you understand and can help me... Thanks!</p>

<pre><code>... listing products by category (Request.QueryString["categoryid"])
... Then deleting by id, (Request.QueryString["deleteid"])    
... and now my problem and what I have so far:

var query = Request.QueryString["deleteid"];
    if (query.HasValue())
    {
        // deleting product
        DeleteSpecificProduct(query.Int16());

        errornotification.Text += @"Your product has been deleted";

        // refreshing current page
        var categoryid = Request.QueryString["categoryid"].Int16();
        var url = String.Format("products.aspx?categoryid={0}", categoryid);
        Response.AppendHeader("REFRESH", "2;URL=" + url);
     }
</code></pre>

<p>//Thanks</p>
