RenderBeginTag for adding button and redirect page OnClick of button
<p>I have used renderbegintag to create tags dynamically,
and i have created html button tag by this ,but i am not getting how to redirect page by passing querystring of id on the click of that button.</p>

<p>My code is:</p>

<pre><code>writer.AddAttribute(HtmlTextWriterAttribute.Class, "Login-btn");
writer.AddAttribute(HtmlTextWriterAttribute.Id, "imgDetails");
writer.AddAttribute(HtmlTextWriterAttribute.Onclick,"Response.Redirect('ProductDetails.aspx?ProductId='+i)");
writer.RenderBeginTag(HtmlTextWriterTag.Button);
writer.Write("Details");
writer.RenderEndTag();//button close
</code></pre>
