Hi,
I am trying to get a control ID of a telerik RadTextBox, using following syntax
var pwd1 = document.getElementById("<%= passwordTextBox.ClientID %>");
and I also tried
var pwd1 = $find("<%= passwordTextBox.ClientID %>");
The script is used inside a user control,
This gives following error,
And when I use,
var pwd1 = $find("<%# passwordTextBox.ClientID %>");
when look at the source, it is just empty string in place (var pwd1 = $find("");)
I tried both ClientID and UniqueID , but it does not works either,
(This code is used inside a UserControl and page uses themes hence it's not possible to remove runat="server" tag in the header section)
I am trying to get a control ID of a telerik RadTextBox, using following syntax
var pwd1 = document.getElementById("<%= passwordTextBox.ClientID %>");
and I also tried
var pwd1 = $find("<%= passwordTextBox.ClientID %>");
The script is used inside a user control,
This gives following error,
The Controls collection cannot be modified because the control contains code blocks
And when I use,
var pwd1 = $find("<%# passwordTextBox.ClientID %>");
when look at the source, it is just empty string in place (var pwd1 = $find("");)
I tried both ClientID and UniqueID , but it does not works either,
(This code is used inside a UserControl and page uses themes hence it's not possible to remove runat="server" tag in the header section)