I have a RadTextBox in a CreateUserWizard template. I tried to use following code to reference it in client side:
var tb = $find("<%= UserName.ClientID %>");
But I always get null.
Is there any way to reference the RadTextbox in javascript?
Here is the code in the page:
<asp:CreateUserWizard ID="C" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep ID="Step1" runat="server">
<contenttemplate>
<telerik:RadTextbox ID="UserName" Label="Username:" runat="server" MaxLength="15" />
........
</contenttemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</asp:CreateUserWizard
var tb = $find("<%= UserName.ClientID %>");
But I always get null.
Is there any way to reference the RadTextbox in javascript?
Here is the code in the page:
<asp:CreateUserWizard ID="C" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep ID="Step1" runat="server">
<contenttemplate>
<telerik:RadTextbox ID="UserName" Label="Username:" runat="server" MaxLength="15" />
........
</contenttemplate>
</asp:CreateUserWizardStep>
</WizardSteps>
</asp:CreateUserWizard