One way of doing this is:
1) Add javascript to client-end to post the form instead of HTML
<script language="javascript" type="text/javascript">
function PostDForm() {
var form = document.createElement("form");
form.setAttribute("method", "post");
form.setAttribute("action", "test.aspx");
var hiddenField = document.createElement("input");
hiddenField.setAttribute("name", "idOfHiddenField");
hiddenField.setAttribute("value", "valueOfHiddenField");
form.appendChild(hiddenField);
document.body.appendChild(form);
form.submit();
}
</script>
2) Add button to asp.net page:
<asp:Button ID="btn" runat="server" Text="Click Me" onclick="btn_Click" />
3) Add following code to button click event:
protected void btn_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(),"keyToPostDFormFunction", "<script>PostDForm();</script>");
}