find a TextBox in a FormView in javascript

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;
 
T

Teemu Keiski

Try

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top