I found the one solution. i.e. have to rewrite the url in web.config file.
The Code in web.config for rewrite
<configuration>
<rewriter>
<rewrite url="^~/offers\/[?](.+)$" to="~/Offers.aspx" />
</rewriter>
</configuration>
My Original URL: http://localhost/offers
I am going to try with GCLID in URL: http://localhost/offers/?gclid=23948god238492
While trying with this url then web.config file rewrite the url to http://localhost/offers.aspx
Then code changes are:
string strRewriteUrl = Request.RawUrl;
if (Request.RawUrl.Contains("gclid"))
{
strRewriteUrl = strRewriteUrl.Replace("/?" + Request.QueryString.ToString(), "");
Response.Redirect("~" + strRewriteUrl, false);
}
This code used to remove the gclid query string and redirect to original path