<asp:button id="button1" runat="server" onclientclick="javascript:$get('<%img.ClientID %>').style.display = 'block';return false;" Text="view image" />
<asp:image id="img" runat="server" ImageURL="something" style="display:none;" />
i used return false to prevent post-back.