Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

firing C# server side code for htmlimage

Status
Not open for further replies.

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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top