Skip to content
Advertisement

Pass GridView column value to Javascript function – OnClientClick

I have a grid view like this:

JavaScript

The JavaScript looks like this:

JavaScript

How can I pass the value in LabCreUser for the row selected to the Javasript function?

I have looked here: Passing variables to javascript in onclientclick and also a few other questions. Nothing I have tried has worked.

Advertisement

Answer

You can pass the parameter to the JS function this way

JavaScript

this will became in

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement