locked
Drop down menu not working once report has loaded RRS feed

  • Question

  • User-2147005629 posted

    Hi

    We use an ASP drop down menu which works fine until we load a page which contains an SQL report.  The report loads fine however once loaded when I hover over the menu it no longer drops down.  You can click one on the menu and it seems to refresh the page allowing the report to be displayed and the menu to work again however this happens each time a new report is loaded. 

    Has anyone else seen this? My menu code is below and the Report code further down.  I am using Report Viewer 11, Visual Studio 2012, SQL Server 2008 and SQL Report Builder 2.0.

    <asp:Menu ID="Menu1" runat="server" BorderStyle="Dotted" DynamicEnableDefaultPopOutImage="False" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" style="font-size: medium">
                            <DynamicHoverStyle BackColor="#7AC0DA" />
                            <DynamicMenuItemStyle BackColor="#EFEEEF" BorderStyle="Dotted" />
                            <Items>
                                <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home" Value="Home"></asp:MenuItem>
                                <asp:MenuItem Text="Links" Value="Links" NavigateUrl="~/Links.aspx"></asp:MenuItem>
                                <asp:MenuItem Text="Documentation" Value="Documentation">
                                    <asp:MenuItem Text="Audit" Value="Audit" NavigateUrl="~/Documentation/Audit.aspx"></asp:MenuItem>
                                    <asp:MenuItem Text="Budget" Value="Budget" NavigateUrl="~/Budget/Budget.doc" target="_blank"></asp:MenuItem>
                                    <asp:MenuItem Text="Money Laundering" Value="Money Laundering" NavigateUrl="~/Documentation/MoneyLaundering.aspx"></asp:MenuItem>
                                    <asp:MenuItem Text="Memos" Value="Memos" NavigateUrl="~/Documentation/Memos.aspx"></asp:MenuItem>
                                    <asp:MenuItem Text="People Developement" Value="People Developement" NavigateUrl="~/Documentation/PeopleDev.aspx"></asp:MenuItem>
                                    <asp:MenuItem Text="Health &amp; Safety" Value="Health &amp; Safety" NavigateUrl="~/Documentation/HealthandSafety.aspx"></asp:MenuItem>
                                    <asp:MenuItem Text="Fire Procedures" Value="Fire Procedures" NavigateUrl="~/Documentation/FireProc.aspx"></asp:MenuItem>
                                    <asp:MenuItem NavigateUrl="~/Documentation/EH/EH2008.pdf" Text="Employee Handbook" Value="Employee Handbook" target="_blank"></asp:MenuItem>
                                    <asp:MenuItem Text="Forms &amp; Misc" Value="Forms &amp; Misc" NavigateUrl="~/Documentation/FormsMisc.aspx"></asp:MenuItem>
                                </asp:MenuItem>
                                <asp:MenuItem Text="Fees" Value="Fees">
                                    <asp:MenuItem Text="ABS" Value="ABS">
                                        <asp:MenuItem Text="Live" Value="Live" NavigateUrl="~/Fees/ABS/ABSLive.aspx"></asp:MenuItem>
                                        <asp:MenuItem Text="Previous" Value="Previous" NavigateUrl="~/Fees/ABS/ABSPrevious.aspx"></asp:MenuItem>
                                    </asp:MenuItem>
                                    <asp:MenuItem Text="Tax &amp; PAYE" Value="Tax &amp; PAYE">
                                        <asp:MenuItem Text="Live" Value="Live" NavigateUrl="~/Fees/TaxPAYE/TaxPAYELive.aspx"></asp:MenuItem>
                                        <asp:MenuItem Text="Previous" Value="Previous" NavigateUrl="~/Fees/TaxPAYE/TaxPAYEPrevious.aspx"></asp:MenuItem>
                                    </asp:MenuItem>
                                    <asp:MenuItem Text="Shropshire" Value="Shropshire">
                                        <asp:MenuItem Text="Live" Value="Live" NavigateUrl="~/Fees/Shropshire/ShropshireLive.aspx"></asp:MenuItem>
                                        <asp:MenuItem Text="Previous" Value="Previous" NavigateUrl="~/Fees/Shropshire/ShropshirePrevious.aspx"></asp:MenuItem>
                                    </asp:MenuItem>
                                    <asp:MenuItem Text="Cheshire" Value="Cheshire">
                                        <asp:MenuItem Text="Live" Value="Live" NavigateUrl="~/Fees/Cheshire/CheshireLive.aspx"></asp:MenuItem>
                                        <asp:MenuItem Text="Previous" Value="Previous" NavigateUrl="~/Fees/Cheshire/CheshirePrevious.aspx"></asp:MenuItem>
                                    </asp:MenuItem>
                                    <asp:MenuItem Text="VAT" Value="VAT">
                                        <asp:MenuItem Text="Live" Value="Live" NavigateUrl="~/Fees/VAT/VATLive.aspx"></asp:MenuItem>
                                        <asp:MenuItem Text="Previous" Value="Previous" NavigateUrl="~/Fees/VAT/VATPrevious.aspx"></asp:MenuItem>
                                    </asp:MenuItem>
                                </asp:MenuItem>
                            </Items>
                            <StaticMenuItemStyle BackColor="#EFEEEF" BorderStyle="None" />
                        </asp:Menu>
               <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" ProcessingMode="Remote" ShowBackButton="False" ShowExportControls="False" ShowFindControls="False" ShowPageNavigationControls="False" ShowPrintButton="False" ShowRefreshButton="False" ShowZoomControl="False" SizeToReportContent="True" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" PromptAreaCollapsed="True" ShowParameterPrompts="False" ShowCredentialPrompts="False" ShowToolBar="False">
                    <ServerReport ReportPath="/Barringtons/ABS" ReportServerUrl="http://Barr-File-001/reportserver" />
                </rsweb:ReportViewer>

    Cheers

    Chris

    Monday, November 26, 2012 5:11 AM

All replies

  • User151513110 posted

    Hi, ChrisJNewb,

    You must avoid postback for drop down menu. Please use updatePanel within drop down menu. It will work.

    Monday, November 26, 2012 7:49 AM
  • User-2147005629 posted

    Hi Ravi

    I am very new to Visual Studio and don't really know what that means, I have just checked Visual Studio and noticed the UpdatePanel under AJAX Extensions within Toolbox but I dont know how to use it in relation to my menu? 

    Do I wrap the menu within the UpdatePanel?

     

                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    </asp:UpdatePanel>

    Cheers

    Monday, November 26, 2012 8:21 AM
  • User151513110 posted

    Hi, try this link: 

    http://forums.asp.net/t/1053484.aspx/1

    http://forums.asp.net/t/1059668.aspx

     

    Tuesday, November 27, 2012 1:26 AM