Hi
I have 4 Image buttons on my user control and on the click of that Image button, I am opening new pop up window. I had used update panel but still it is refreshing the page. I don't want to refresh my page on the click. Please let me know how to fix this?
<asp:UpdatePanel ID="SharePanel" runat="server">
<ContentTemplate>
<div class="full">
<h3>Share :
<asp:ImageButton ID="imgFB" runat="server"
ImageUrl="http://localhost:49524/mysite/Images/facebook_ico-1.gif"
onclick="imgFB_Click" />
<asp:ImageButton ID="imgTwitter" runat="server"
ImageUrl="http://localhost:49524/mysite/Images/twitter_ico.gif"
onclick="imgTwitter_Click" />
<asp:ImageButton ID="imgGoogle" runat="server"
ImageUrl="http://localhost:49524/mysite/Images/ico-google-plus.png"
onclick="imgGoogle_Click" />
<asp:ImageButton ID="imgPint" runat="server"
ImageUrl="http://localhost:49524/mysite/Images/icon-pinterest.png"
onclick="imgPint_Click" />
</h3>
</div>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="imgFB" />
<asp:PostBackTrigger ControlID="imgTwitter" />
<asp:PostBackTrigger ControlID="imgGoogle" />
<asp:PostBackTrigger ControlID="imgPint" />
</Triggers>
</asp:UpdatePanel>
protected void imgFB_Click(object sender, ImageClickEventArgs e)
{
HttpContext.Current.Response.Write("<SCRIPT LANGUAGE='JavaScript'>window.open('http://www.facebook.com/share.php?u=http://localhost:49524/mysite/Product/" + hdnProductID.Value + "','_blank', 'location=yes,width=700,height=400');</SCRIPT>");
}