Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > RadMenu & Microsoft AntiXss 4.2.1

Not answered RadMenu & Microsoft AntiXss 4.2.1

Feed from this thread
  • Richard Weeks Intermediate avatar

    Posted on Jan 17, 2012 (permalink)

    If I reference the AntiXss library (4.2.1) and then implement it through web config, e.g:
    <system.web>
        <httpRuntime encoderType="Microsoft.Security.Application.AntiXssEncoder, AntiXssLibrary"/>
    </system.web>

    When rendered, the RadMenu presents all links as href="%23".

    How can I ensure RadMenu operates normally after adding AntiXss?

    Richard

    Reply

  • Peter Peter admin's avatar

    Posted on Jan 20, 2012 (permalink)

    Hello Richard,

    The problem is not with RadMenu. You can test a regular HyperLink and its NavigateUrl value will also get corrupted:
    * * *
     
     <asp:HyperLink Text="aaaa" NavigateUrl="http://www.google.bg/" runat="server"></asp:HyperLink>
     
    * * *

    You can try to workaround the issue with the client API of RadMenu:
    <script type="text/javascript">
            function OnClientLoad(menu) {
                var items = menu.get_allItems();
                for (var i = 0; i < items.length; i++) {
                    var currentItem = items[i]
                    currentItem.set_navigateUrl(currentItem.get_navigateUrl());
                }       
            }
        </script>
        <telerik:RadMenu ID="RadMenu1" runat="server" OnClientLoad="OnClientLoad">


    Kind regards,
    Peter
    the Telerik team
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now

    Reply

  • Richard Weeks Intermediate avatar

    Posted on Jan 22, 2012 (permalink)

    It's a bug. Damn, there goes my AntiXss till they get a patch out :(

    Richard

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Menu > RadMenu & Microsoft AntiXss 4.2.1
Related resources for "RadMenu & Microsoft AntiXss 4.2.1"

[  ASP.NET Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]