Call javascript function on onClientClick method with parameters


/ Published in: ASP

For example, in a button, in OnClientClick method, pass parameters for a javascript method.


Copy this code and paste it in your HTML
  1. OnClientClick=<%# string.Format("selectedCompany('{0}')", Eval("EmpresaCIF")) %> />

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.