img button event
-
hello, I have a question: I have a written html page with image. when the user click on it i want it to raise event,I do not want to handle it throw the asp. I dont want to write:
I want to handle the onclick event in my aspx.cs file how can I do it? thank you very much for your help, sharon
-
hello, I have a question: I have a written html page with image. when the user click on it i want it to raise event,I do not want to handle it throw the asp. I dont want to write:
I want to handle the onclick event in my aspx.cs file how can I do it? thank you very much for your help, sharon
If you want to handle it on the server instead of the client you have to make it a server object. Offhand I'm not certain an IMG raises a server side click event but I am fairly certain an Input type="Image" does. Then just make sure and add the event handler code inside your .cs . BTW: for next time this is an ASP/ASP.NET question and should go there.:)
-
If you want to handle it on the server instead of the client you have to make it a server object. Offhand I'm not certain an IMG raises a server side click event but I am fairly certain an Input type="Image" does. Then just make sure and add the event handler code inside your .cs . BTW: for next time this is an ASP/ASP.NET question and should go there.:)