Finding controls in javascript

I'm having a problem detecting UpdatePanel inside Gridview inside Formview in Javascript. Below doesn't work.

 var UpdatePanel3 = $get('<%=FormView1.FindControl("Gridview1").FindControl("UpdatePanel3").ClientID %>');

      

How can I find this control

+2


source to share


2 answers


$get('<%=UpdatePanel3.ClientID %>');

      



The best way

+3


source


The easiest way is with jquery. Add the class to the gridview and do $ (". CssClassName")



0


source







All Articles