You may try as shown below.
This is just a sample.Please Adjust it according to your app.
1. Redirect to a location with a query string :
Response.Redirect("YourPage.aspx?id=" + yourId.toString(), true);
2. Render the button as a LinkButton and set the URL :
LinkButton myLinkButton = new LinkButton("YourPage.aspx?id=" + yourId.toString(), true);
3. Render the button as a client side link (with Repeater control)
<a href="/KB/answers/YourPage.aspx"?id=<%# Eval("yourID") %>'>Link</a>