Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
issue page load twice
posted

hi iam currently use v10 vol 2 and ie8 . i call from the webdatamenu a webform. i set a breakpoint in the loadevent. the page loads twice if i call it from the webdatamenu.
when i place a normal link button on the calling page the aspx page will call once.
the calling page is based on a masterpage where i placed the webdatamenu.
it has 5 parent and aprox. 5 subchilds.

my item is build up as follows


 <ig:DataMenuItem Text="test1" Key="test1">
                            <Template>
                                <asp:HyperLink CssClass="igdm_RedPlanetMenuItemVertical" ID="test1" runat="server" NavigateUrl="~/test1.aspx">test1</asp:HyperLink>
                            </Template>
                        </ig:DataMenuItem>


i have looked in the calling page and there are no other postbacks. only if i call it from the webdatamenu it is called twice. i have no idea why.

 

Parents
No Data
Reply
  • 3726
    posted

    Hi Martin,

    I think the problem is the following, the menu has by default AutoPostbackFlag for ItemClick event = On, which means that the menu will do a postback on each item click. Since you have a hyperlink in the template the link triggers a navigate and after that the ItemClick event will also trigger a navigate. Try setting <AutoPostbackFlags ItemClick="Off" /> this way you will do the navigation through the hyperlink defined in the template item.

    Hope this helps.

    Thanks,

    Lubomir

Children