Assigning Jquery function to ImageButton

0

Good morning!

How can I assign a Jquery function to a buttom image?

IhavethislineofcodethatistoexportareportinexcelandIwanttocallaJqueryfunctiontoloadarenderingscreenwhiletheserverdoesallthenecessaryvalidations.

Ex.

Obs. I already have the function in other screens and I already checked that it works in the normal button, I already tried calling this function in the button event, but it does not work like this ImageButton.

Thank you.

    
asked by anonymous 24.03.2017 / 14:13

1 answer

0

I do not know if I understood correctly what you said but you can put the function in the OnClientClick attribute or do it directly in JQuery

Type this:

$("#<%=btnImpListaXLS.ClientID%>").click(function(){
  
});

Note: this JQuery ClientID only works on the ASP page itself. If on another page you need to call by class.

    
24.03.2017 / 14:48