gpiyush152 says:
protected void btnSubmit_Click(object sender, EventArgs e)
{
Response.Redirect("DisplayDetails.aspx?ID=" + hfID.Value);
}
above codes html will be like below
<asp:Button ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" runat="server" />
and keep in mind there should be a page with name DisplayDetails.aspx or the page where you are redirecting on button click as in sample i was redirecting it to the DisplayDetails.aspx mention the page name where you want to redirect on the button click.