Yadlapalli Srikanth

Yadlapalli Srikanth

  • NA
  • 272
  • 82.8k

which is the best way below

May 20 2014 2:50 AM
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')");

Answers (10)