I am dynamically creating a hyperlink in the c# code behind file of ASP.NET. I need to call a JavaScript function on client click. how do i accomplish this?
I prefer using the onclick method rather than the href for javascript hyperlinks. And always use alerts to determine what value do you have.
Link
It could be also used on input tags eg.