Mar 18, 2008 #1 tekkerguy Programmer Nov 16, 2005 196 US is there anyway to fire c# serverside code from htmlimage? I tried using the onclick event, but that results in function undefined, because it only fires client side.
is there anyway to fire c# serverside code from htmlimage? I tried using the onclick event, but that results in function undefined, because it only fires client side.
Mar 18, 2008 #2 jbenson001 Programmer Jan 7, 2004 8,172 US put runat="server" in the tag. Upvote 0 Downvote
Mar 19, 2008 Thread starter #3 tekkerguy Programmer Nov 16, 2005 196 US I should have mentioned this before, I had the runat="server" tag in the tag already, but it wasn't recognizing the function. It was working as an html button, but stopped when I changed it to an img. At any rate, I got it working by encapsulating the img in an anchor and firing the code behind from the anchor. Upvote 0 Downvote
I should have mentioned this before, I had the runat="server" tag in the tag already, but it wasn't recognizing the function. It was working as an html button, but stopped when I changed it to an img. At any rate, I got it working by encapsulating the img in an anchor and firing the code behind from the anchor.