Problem using AntiXssEncoder as default encoder

2 posts, 0 answers
  1. Mick
    Mick avatar
    16 posts
    Member since:
    May 2012

    Posted 21 Oct 2012 Link to this post

    I'm using Telerik ASP.NET AJAX controls (ver. 2010.2.929.40).  When I use the AntiXssEncoder as the default encoder...

        <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary" />
    

    The links on the radtabstrip controls in our application get rendered with %23 instead of # as the hyperlink....

    i.e.
    With AntiXssLibrary

    <a class="rtsLink rtsAfter" href="%23"> 

    Instead of without the AntiXssLibrary...

    <a class="rtsLink rtsAfter" href="#">

    Clicking on the first link results in a 404 error page.

    Is there a solution for this problem? 
  2. Robert
    Robert avatar
    38 posts
    Member since:
    Feb 2012

    Posted 06 Jun 2013 Link to this post

    I actually found a solution to this problem. I wrote it to handle the same issue with Kendo UI (another Telerik product) but the solution is not product specific.

    You can find a Gist with the solution here. Please don't hesitate to ask if you have any questions.

    Robert McLaws
    CTO and co-founder, AdvancedREI.com
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top