This is a migrated thread and some comments may be shown as answers.

Bug ? radMenu unable to postback to http: from https

3 Answers 29 Views
Menu
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 26 Jul 2009, 01:48 PM
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.

3 Answers, 1 is accepted

Sort by
0
CSurieux
Top achievements
Rank 2
answered on 26 Jul 2009, 02:07 PM
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
0
Atanas Korchev
Telerik team
answered on 27 Jul 2009, 07:21 AM
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.
0
CSurieux
Top achievements
Rank 2
answered on 27 Jul 2009, 08:34 AM

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

 

Tags
Menu
Asked by
CSurieux
Top achievements
Rank 2
Answers by
CSurieux
Top achievements
Rank 2
Atanas Korchev
Telerik team
Share this question
or