which is the best way below
I need to add onclick method to textbox inside grid.In this scenerio i can bind the client id the get the value of that grid item inside javascript method or can bind directly the value to the javascript method which is the best way for implementation
1. binding the client id and getting the value
txtbx1.attributes.add("onclick","Getvalues('txtbx1')");
2. Bind value directly to the method
txtbx1.attributes.add("onclick","Getvalues('20')");