Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
42975 Points
7025 Posts
MVP
Apr 07, 2012 10:20 AM|LINK
Hello,
For the asp.net server controls, OnClick fires the server event. To fire the client event, you have to use OnClientClick. OnClick will fire the client side event only for HTML controls, not for asp.net controls.
Please 'Mark as Answer' if this post helps you.
Ruchira
All-Star
42975 Points
7025 Posts
MVP
Re: how can i use an A href OnClick on an Asp:Imagebutton
Apr 07, 2012 10:20 AM|LINK
Hello,
For the asp.net server controls, OnClick fires the server event. To fire the client event, you have to use OnClientClick. OnClick will fire the client side event only for HTML controls, not for asp.net controls.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.