Bug ? radMenu unable to postback to http: from https

4 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Jul 2009 Link to this post

    Hello,

    My site after a payment under https secured pages should return to http from links inserted in a radMenu.
    I am building radmenuItems from code behind and I checked that the navigateUrl contains a full url with scheme like http://MyDom/myPage.aspx but still Radmenu post https://MyDom/MyPage.aspx when the containing page is https

    Am I missing something or is it a bug ?

    Thanks

    CS.
  2. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 26 Jul 2009 Link to this post

    More on this, it is a bug, I will open a ticket.
    Looking more in detail it appears that radmenuitems calls ResolveClientUrl in its

            private void RenderLink(HtmlTextWriter writer)  
            {  
                if (string.IsNullOrEmpty(NavigateUrl))  
                {  
                    writer.AddAttribute(HtmlTextWriterAttribute.Href, "#");  
                }  
                else  
                {  
                    writer.AddAttribute(HtmlTextWriterAttribute.Href, ResolveClientUrl(NavigateUrl));  
                }  
     

    This should be done only when NavigateUrl is a relative url, not when a fully qualified url is specified.


    Thanks

    CS
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 Jul 2009 Link to this post

    Hello Christian Surieux,

    The ResolveClientUrl method does not change the url if it is fully qualified. You can check if the same behavior occurs with the built-in HyperLink control.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 27 Jul 2009 Link to this post

    Hello Albert,

     

    So what could explain that browser source code shows that menu items are initialized with an https: scheme when I initialize them with http:?

     

    I tested that when I assign my url, calling ResolveClientUrl have no impact on it, I agree.

    But conditions could change in Render may be due to Ajax.net ?

     

    As all the methods and Properties are private in RadMenuItem ( what for ???), I am unable to write my own DebugMenuitem class to override RenderLink and check that at that time ResolveClientUrl doesn’t change the scheme.

     

    I will continue this thread on the ticket.

     

    Regards

     

    CS

     

Back to Top