24 April 2014

Remove query string in ASP.Net & c#.net



    var nvc = HttpUtility.ParseQueryString(Request.Url.Query);
    nvc.Remove("query_string_name");
    string url = Request.Url.AbsolutePath + "?" + nvc.ToString();
    Response.Redirect(url);

No comments:

Post a Comment