Hello,
I've a master page (with <head> without runat=server) and a content page where I've put a telerik RadTextBox control (named "RadTextBox1").
I'm trying to access this object in javascript with the following code:
- var tb=$find("<%=RadTextBox.ID%>");
but when executing this line I get the following error at runtime: Impossible to modify Controls entirely because the control contains code blocks .
I'd the same problem with a normal page (not in the master/content paradigm) when putting the javascript function definition in the <head> segment but shifting it in the body area the error disappeared.
Now I've tried to put the javascript at the beginning and at the end of the <ContentPage> tag but nothing changes.
Any help?
Thanks.
I've a master page (with <head> without runat=server) and a content page where I've put a telerik RadTextBox control (named "RadTextBox1").
I'm trying to access this object in javascript with the following code:
- var tb=$find("<%=RadTextBox.ID%>");
but when executing this line I get the following error at runtime: Impossible to modify Controls entirely because the control contains code blocks .
I'd the same problem with a normal page (not in the master/content paradigm) when putting the javascript function definition in the <head> segment but shifting it in the body area the error disappeared.
Now I've tried to put the javascript at the beginning and at the end of the <ContentPage> tag but nothing changes.
Any help?
Thanks.