What you really need is to use the
Page.GetPostBackReference(Control)
method. This allows you to attach the Server side
PostBack
event method of a control
C1
to a client side event of another control
C2
.
For example, the following piece of code attaches the button's server side
PostBack
event to the Anchor tag's
onclick
event.
<a onclick="<%=Page.GetPostBackEventReference(ButtonContol)%>;">Refresh</a>