Author: aibip | Posted on: 11/8/2010 5:57:48 PM | Views : 287

I have following hyperlink
<a href="#" id="fbshare" runat="server"><img src="../Images/facebook_share.jpg" /></a>
-- code behind --
fbshare.Attributes.Add("onclick", "window.open('http://www.facebook.com/sharer.php?u=http://www.mywebsite.com/gallery.aspx?ImgID=" + itemID + "&t=myweb','itemdetail,','scrollbars=yes,width=600,height=400')")


Now, I would like to call server side function when the link is clicked.


Sub fbshare()
'''''''button clicked - update database'

End Sub


If I use LinkButton, I can call the function, but I'm not sure how to add client side of the code (above).


Is this posible?



Thank you



...

Go to the complete details ...