HTML5 validation error - Element 'textboxdecoration' not supported

4 posts, 0 answers
  1. Nancy
    Nancy avatar
    22 posts
    Member since:
    Jun 2005

    Posted 27 Feb 2014 Link to this post

    I am trying to use the RadCaptcha 2013 Q3 .NET 4.5.   I put the RadCaptcha control on my page, set a few properties, and noticed the there were 2 elements automatically added to the RadCaptcha source - TextBoxDecoration and TextBoxLabelDecoration. Both of these are giving an HTML5 error that they are not supported.  I remove the 2 lines and build - and they automatically appear.  I cannot run my project!  Every time I remove these lines they just re-appear!  What gives?!

    <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="The code you entered is not valid." >
     
    <TextBoxDecoration AccessKey="" BackColor="" BorderColor="" BorderStyle="NotSet" BorderWidth="" CssClass="" ForeColor="" Height="" TabIndex="0" ToolTip="" Width=""></TextBoxDecoration>

    <TextBoxLabelDecoration AccessKey="" BackColor="" BorderColor="" BorderStyle="NotSet" BorderWidth="" CssClass="" ForeColor="" Height="" TabIndex="0" ToolTip="" Width=""></TextBoxLabelDecoration>
    </telerik:RadCaptcha>
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 28 Feb 2014 Link to this post

    Hello Nancy,

    Could you please provide a more detailed information about the steps you perform and the actual problem so that I can help you accordingly?

    • How are you adding the RadCaptcha control - from the toolbox of Visual Studio or manually?
    • How are you changing the properties of the control - from the Properties dialog or manually?
    • When do the inner properties TextBoxLabelDecoration and TextBoxDecoration appear?

    Note that it is expected that the mentioned inner properties appears when you configure them from the Properties window in Visual Studio, however it is strange that they appear every time you remove them. Also, I will need clarification about the validation that fails upon including the inner properties. Is the error displayed in Visual Studio or in the rendered page (the second case would be strange because these tags should not be rendered on the HTML page)?

    Regards,
    Slav
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nancy
    Nancy avatar
    22 posts
    Member since:
    Jun 2005

    Posted 03 Mar 2014 Link to this post

    Thank you for your response.  I found the issue was having the RadCaptcha inside of the standard .NET CreateUserWizardStep.  Once I moved the RadCaptcha out of the wizardStep and onto its own page, the problem went away.  To answer your last question, the error displayed in Visual Studio (I was not able to build).  I've chosen to just go with using RadCaptcha on its own page as I was not able to figure out what was causing the strange issue with it inside the wizardStep. 
  5. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 05 Mar 2014 Link to this post

    Hi Nancy,

    I am afraid that I am still unable to reproduce the problem at hand. Indeed, the inner properties of RadCaptcha are added when inserting the control from the Visual Studio toolbox into a Wizard step, however there are no errors in the build on my end as you can check in the following screen capture: http://screencast.com/t/oiPEqeWbhyF.

    Please check the linked video and let me know if there are differences in the setup of your project. For example, is your project a web site as well, is there something different in the settings that are visible in the clip, are there differences in the configuration of the page and the controls?

    This information, in addition to step-by-step instructions for reproducing the problem (you can also use a video for this purpose), will be very useful for recreating your scenario and determining what is causing the issue.

    Regards,
    Slav
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Back to Top