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

Source Code : 
OnClientClick=<%# string.Format("selectedCompany('{0}')", Eval("EmpresaCIF")) %> /> 

[Login or Register to remove this advertisement]

Mobile_Guru Reviewed by Mobile_Guru on . Call javascript function on onClientClick method with parameters For example, in a button, in OnClientClick method, pass parameters for a javascript method. OnClientClick=<%# string.Format("selectedCompany('{0}')", Eval("EmpresaCIF")) %> /> Rating: 5