find a TextBox in a FormView in javascript

  • Thread starter Thread starter Liones
  • Start date Start date
L

Liones

Hi,
In javascrip i have to find a "Versam20TextBoxEd" in a FormView but i get
error of compilation
the "Versam20TextBoxEd" is not in the context

I can find the FormView
document.getElementById('<%=FormView3.ClientID%>'); ok
but i don't find the TextBox
document.getElementById('<%=FormView3.ClientID%>_<%=Versam20TextBoxEd.ClientID%>');
Error ...
Thanks;
 
Try

document.getElementById('<%=FormView3.FindControl("Versam20TextBoxEd").ClientID%>');

where "Versam20TextBoxEd" would be the ID of the TextBox in FormView.
 
Back
Top