find control on Gridview using javascript
-
Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards
Vijay V. Yash Softech
-
Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards
Vijay V. Yash Softech
-
You can’t find server side control in client side. While rendering page, those are converted to HTML markups. To access this HTML tags, use document.getElementById function.
Kannan Pala wrote:
document.getElementById function.
It will give only the client id of that document, not any control inside of a particual control.
cheers, Abhijit
-
Hi, can anyone suggest me how to find a control in gridview and pass value on the control using javascript. I m a newbie with javascript. Regards
Vijay V. Yash Softech
Here a Good Article From CP Client-Side Validation for the CheckBoxes Inside a GridView[^] This will solve your purpose.
cheers, Abhijit
-
Kannan Pala wrote:
document.getElementById function.
It will give only the client id of that document, not any control inside of a particual control.
cheers, Abhijit
-
Kannan Pala wrote:
This function will return a reference to an HTML control.
Will it return the reference of control inside the Gridview?
cheers, Abhijit