Menu control hover problem

Last post 07-05-2009 10:43 PM by Hong-Gang Chen - MSFT. 9 replies.

Sort Posts:

  • Menu control hover problem

    06-26-2009, 5:32 PM
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    Hi,

    I have written an ASP.Net web app using VS 2008 which uses the .Net Menu control.

    The problem is that the hover behavior of the control (which flips the back and fore colors of the selected menu item) does not work when the web site is published to a web server.  However, it does work properly when debugging the app.

    IE8 is being used both for debugging and published access, and Firefox has the same issue with the published site; the tooltips are displayed but the hovering behavior does not occur.

    Any ideas?

  • Re: Menu control hover problem

    07-02-2009, 12:35 AM

    Please chekc this link, there  are several samples on it.  After tested, the samples are working correct under IE and FF,

    http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/navigation/menu.aspx

     

    Hong-Gang Chen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Menu control hover problem

    07-02-2009, 4:45 PM
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    Hong-Gang,

    Thanks for the feedback, but I am still having a problem with this.

    I turned on Javascript error handling and I am getting an "Object expected" error every time I try to hover over the menu item.  The web page is trying to perform a "Menu_HoverStatic(this)" and that is where the error occurs.

    I then tried the example in the QuickStart link you sent, and it worked in both IE and FireFox!  However, there is a bug in IE8 - submenus are entirely white/blank areas, and are not clickable.  I noticed this in my own development, and this problem occurs in the QuickStart turorial as well.  FireFox works properly but IE8 screws up.

    But to return to the my primary issue - this may be due to the fact that the menu is on a Master page with another content page loaded.  I have included my Master page definition so that you can see if I screwed something up.  If you like I can also send the browser html View Source.

    <%@ Master Language="C#"
        AutoEventWireup="true"
        CodeBehind="ProTher.Master.cs"
        Inherits="ProTherWeb.ProTherMaster" %>
    <%@ Register Assembly="UtilityMsgBox" Namespace="UtilityMsgBox" TagPrefix="cc1" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <!--
        <link rel="stylesheet" type="text/css" href="ProTher.css" />
        -->
    </head>
    <body>
        <form ID="frmMaster" runat="server">
        <style>
            .divContentArea
            {
                left: 10px;
            	font-family: Verdana;
                font-weight: normal;
            }
            .divHeaderArea
            {
                left: 10px;
            	font-family: Verdana;
                font-size: large;
                font-weight: bold;
            }
        </style>
        <asp:SiteMapDataSource ID="ctlSiteMap" runat="server" 
            ShowStartingNode="False" />
        <div ID="divHeaderArea" class="divHeaderArea">
            <img ID="imgHeader" 
                alt="Mass General Hospital"
                src="images/ProTher.jpg"
                height="72px"
                width="279px"
                >
            <span ID="spnSystemName"
                style="position:absolute;
                    top:10px;
                    left:300px;
                    font-style:italic;
                    ">
                ProTher - Proton Therapy System   
                <asp:Label ID="lblFormName" runat="server"
                    Style="font-style:normal;"
                    Text="">
                </asp:Label>
            </span>
            <asp:Menu ID="mnuMain" runat="server"
                DataSourceID="ctlSiteMap"
                DynamicHorizontalOffset="2"
                StaticDisplayLevels="1"
                StaticSubMenuIndent="10px"
                Style="position:absolute;
                    top:50px;
                    left:310px;
                    font-size:small;
                    z-index:100"
                BackColor="#F7F6F3"
                ForeColor="#7C6F57" 
                OnMenuItemClick="mnuMain_ItemClick" 
                Orientation="Horizontal"
                >
                <DynamicHoverStyle
                    BackColor="#7C6F57"
                    ForeColor="#F7F6F3"
                    />
                <DynamicMenuStyle
                    BackColor="#F7F6F3"
                    />
                <DynamicMenuItemStyle
                    HorizontalPadding="5px"
                    VerticalPadding="2px"
                    />
                <DynamicSelectedStyle
                    BackColor="#F7F6F3"
                    />
                <StaticHoverStyle
                    BackColor="#7C6F57"
                    ForeColor="#F7F6F3"
                    />
                <StaticMenuItemStyle
                    HorizontalPadding="5px"
                    VerticalPadding="2px" 
                    />
                <StaticSelectedStyle
                    BackColor="#F7F6F3"
                    />
                <DataBindings>
                    <asp:MenuItemBinding
                        DataMember="SiteMapNode"
                        NavigateUrlField="Url"
                        TextField="Title"
                        ToolTipField="Description"
                        />
                </DataBindings>
            </asp:Menu>
            <asp:Panel ID="pnlUser" runat="server">
                <span ID="spnUserName"
                    style="position:absolute;
                        top:52px;
                        left:660px;
                        font-size:0.8em;">
                    User: 
                    <asp:Label ID="lblUserName" runat="server"
                        Text="">
                    </asp:Label>
                </span>
            </asp:Panel>
        </div>
        <div ID="divContentArea class="divContentArea">
            <asp:ContentPlaceHolder ID="ctlContentBody" runat="server">
            </asp:ContentPlaceHolder>
        </div>
        <cc1:MsgBox ID="ctlMsgBox" runat="server" />
        </form>
    </body>
    </html>
    


     

  • Re: Menu control hover problem

    07-02-2009, 4:49 PM
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    Hong-Gang,

    Here is the browser view source...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <!--
        <link rel="stylesheet" type="text/css" href="ProTher.css" />
        -->
    <title>
    	ProTher - Proton Therapy System - PlanList
    </title><style type="text/css"> 
    	.ctl00_mnuMain_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }
    	.ctl00_mnuMain_1 { color:#7C6F57;text-decoration:none; }
    	.ctl00_mnuMain_2 { color:#7C6F57;background-color:#F7F6F3; }
    	.ctl00_mnuMain_3 {  }
    	.ctl00_mnuMain_4 { padding:2px 5px 2px 5px; }
    	.ctl00_mnuMain_5 {  }
    	.ctl00_mnuMain_6 { padding:2px 5px 2px 5px; }
    	.ctl00_mnuMain_7 { background-color:#F7F6F3; }
    	.ctl00_mnuMain_8 {  }
    	.ctl00_mnuMain_9 { background-color:#F7F6F3; }
    	.ctl00_mnuMain_10 {  }
    	.ctl00_mnuMain_11 { background-color:#F7F6F3; }
    	.ctl00_mnuMain_12 { color:#F7F6F3; }
    	.ctl00_mnuMain_13 { color:#F7F6F3;background-color:#7C6F57; }
    	.ctl00_mnuMain_14 { color:#F7F6F3; }
    	.ctl00_mnuMain_15 { color:#F7F6F3;background-color:#7C6F57; }
     
    </style></head>
    <body>
        <form name="aspnetForm" method="post" action="planlist.aspx" id="aspnetForm">
    <div>
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="EZyIRBExZ0JHjJzYnFSq5asVj063iJcrw7vMLUYpx6z4yfN5Q0Nclsoj8JjIjCFuyiVYlTXMOs+28qK0oOm8Ax/nDNVQsb2oWcIviZ7Z+8jw6DK/5nWW1D5GnYWjjFF0MPOy1FzinjJKubjxgEizydPMFxcu5TF8nVJp2kG47gT1fe0Ki22XhVpD4+n54yAgUZJDFwnQeJHJb0y1iohQneGrOcildRmk0CaJt/vqxIUFFam5+0Nz9zjSfd5keGNzZfHVbY7i19bAhzBRfWRJUhOgSuSzLy9alGW2Az0UhYOqCT0ja9jS5kNlI+ge533SMBbatbFUDlf+tjl9x9LPMGZAMrQ91+B+6veifcsV/O+pOnhCllIa/dTnkpeuLBYp6T8IdbgZFc8hQxLICC+IzowF03+TmJbmYHy9tmdXzCXTJtMNUAVxfmQpZ7/H7YnWt8oUQMEpLunK/z+6Tx+Dpe35IHHZt8E2m8HSa0B7y8yqsjt3GChs/6FBmAnNJVPjKs7LyCv89VF/FqRB+ccrNkLSh4ldqhB5IqVEEvT7pRD1jgV6Ng+obUSMVRa8tFBEejAEein/CLw+Riz0YIJXtFD98KGI7gft6uAeZAGiceewS4Y2IK8wO0LWA+29TlT6SrJEOEM7/jRkOOs+mUK9LXvffm6cBJpPk4wl2qSupiuGIOaXlRr6GQjH/WLoxWvwqRGTkeG6tKMgNASJJ1uH/lGx6WejoPwjlUxfWQamh1zlBLQ3OP6W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ATA[
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
        theForm = document.aspnetForm;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    //]]>
    </script>
     
     
    <script src="/ProTher/WebResource.axd?d=fLuZXtT1ofpKuUU0KLUzVA2&t=633741240633748453" type="text/javascript"></script>
     
     
    <script src="/ProTher/WebResource.axd?d=uDCRoQtyr0DyUgNPhdbGcA2&t=633741240633748453" type="text/javascript"></script>
    <div>
     
    	<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
    	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="RGMyHXPI0tFtPQhkDEvsTzbOVG1hM/KKyI1WCRKXLdOfYmrGCW9VLBKiuN6xFfsEXH/7BnX02TKom5pH6xx09XRRodt9tp3Ti8RSnLBU8AI=" />
    </div>
        <style>
            .divContentArea
            {
                left: 10px;
            	font-family: Verdana;
                font-weight: normal;
            }
            .divHeaderArea
            {
                left: 10px;
            	font-family: Verdana;
                font-size: large;
                font-weight: bold;
            }
        </style>
        
        <div ID="divHeaderArea" class="divHeaderArea">
            <img ID="imgHeader" 
                alt="Mass General Hospital"
                src="images/ProTher.jpg"
                height="72px"
                width="279px"
                >
            <span ID="spnSystemName"
                style="position:absolute;
                    top:10px;
                    left:300px;
                    font-style:italic;
                    ">
                ProTher - Proton Therapy System   
                <span id="ctl00_lblFormName" style="font-style:normal;">PlanList Form</span>
            </span>
            <a href="#ctl00_mnuMain_SkipLink"><img alt="Skip Navigation Links" src="/ProTher/WebResource.axd?d=a7kJ-ecm1ksKmVR29uh9nQ2&t=633741240633748453" width="0" height="0" style="border-width:0px;" /></a><table id="ctl00_mnuMain" class="ctl00_mnuMain_2" cellpadding="0" cellspacing="0" border="0" style="position:absolute;
                    top:50px;
                    left:310px;
                    font-size:small;
                    z-index:100">
    	<tr>
    		<td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" title="Display the list of treatment plans" id="ctl00_mnuMainn0"><table class="ctl00_mnuMain_4 ctl00_mnuMain_9" cellpadding="0" cellspacing="0" border="0" width="100%">
    			<tr>
    				<td style="white-space:nowrap;"><a class="ctl00_mnuMain_1 ctl00_mnuMain_3 ctl00_mnuMain_8" href="/ProTher/PlanList.aspx">PlanList</a></td>
    			</tr>
    		</table></td><td style="width:3px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" title="Administer the lookup items" id="ctl00_mnuMainn1"><table class="ctl00_mnuMain_4" cellpadding="0" cellspacing="0" border="0" width="100%">
    			<tr>
    				<td style="white-space:nowrap;"><a class="ctl00_mnuMain_1 ctl00_mnuMain_3" href="/ProTher/LookupItems.aspx">LookupItems</a></td>
    			</tr>
    		</table></td><td style="width:3px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" title="Administer the lookup links" id="ctl00_mnuMainn2"><table class="ctl00_mnuMain_4" cellpadding="0" cellspacing="0" border="0" width="100%">
    			<tr>
    				<td style="white-space:nowrap;"><a class="ctl00_mnuMain_1 ctl00_mnuMain_3" href="/ProTher/LookupLinks.aspx">LookupLinks</a></td>
    			</tr>
    		</table></td><td style="width:3px;"></td><td onmouseover="Menu_HoverStatic(this)" onmouseout="Menu_Unhover(this)" onkeyup="Menu_Key(this)" title="Log out of the system" id="ctl00_mnuMainn3"><table class="ctl00_mnuMain_4" cellpadding="0" cellspacing="0" border="0" width="100%">
    			<tr>
    				<td style="white-space:nowrap;"><a class="ctl00_mnuMain_1 ctl00_mnuMain_3" href="javascript:__doPostBack('ctl00$mnuMain','Logout')">Logout</a></td>
    			</tr>
    		</table></td>
    	</tr>
    </table><a id="ctl00_mnuMain_SkipLink"></a>
            <div id="ctl00_pnlUser">
    	
                <span ID="spnUserName"
                    style="position:absolute;
                        top:52px;
                        left:660px;
                        font-size:0.8em;">
                    User: 
                    <span id="ctl00_lblUserName">admin</span>
                </span>
            
    </div>
        </div>
        <div ID="divContentArea class="divContentArea">
            
        <br />
        <div>
    	<table cellspacing="0" cellpadding="4" border="0" id="ctl00_ctlContentBody_ctlGridView" style="color:#333333;border-collapse:collapse;position:relative;
                left: 0px;
                width: 800px;">
    		<tr style="color:White;background-color:#0C83A1;font-weight:bold;">
    			<td><a href="javascript:__doPostBack('ctl00$ctlContentBody$ctlGridView','Sort$sPatientLastName, sPatientFirstName')" style="color:White;">Patient</a></td><td>Plan Info</td><td><a href="javascript:__doPostBack('ctl00$ctlContentBody$ctlGridView','Sort$sPriority')" style="color:White;">Priority</a></td><td><a href="javascript:__doPostBack('ctl00$ctlContentBody$ctlGridView','Sort$dtSubmitted')" style="color:White;">Submit Date</a></td><td><a href="javascript:__doPostBack('ctl00$ctlContentBody$ctlGridView','Sort$dtRequiredBy')" style="color:White;">Required Date</a></td><td><a href="javascript:__doPostBack('ctl00$ctlContentBody$ctlGridView','Sort$sStatus')" style="color:White;">Status</a></td><td>Run</td><td> </td>
    		</tr><tr style="color:#333333;background-color:#F7F6F3;">
    			<td style="color:#FF0000;">
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl02_lblPatientLastName">Sorensen</span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl02_lblPatientComma">, </span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl02_lblPatientFirstName">Rich</span>
                    </td><td style="color:#FF0000;"> </td><td style="color:#FF0000;">ROUTINE</td><td style="color:#FF0000;">04/01/2009</td><td style="color:#FF0000;">04/15/2009</td><td style="color:#FF0000;">CANCELLED</td><td>
                        
                    </td><td>
                        <input type="submit" name="ctl00$ctlContentBody$ctlGridView$ctl02$btnView" value="View" id="ctl00_ctlContentBody_ctlGridView_ctl02_btnView" disabled="disabled" />
                    </td>
    		</tr><tr style="color:#333333;background-color:White;">
    			<td style="color:#FF0000;">
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl03_lblPatientLastName">Schinazi</span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl03_lblPatientComma">, </span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl03_lblPatientFirstName">Alan</span>
                    </td><td style="color:#FF0000;"> </td><td style="color:#FF0000;">ROUTINE</td><td style="color:#FF0000;">04/02/2009</td><td style="color:#FF0000;">04/16/2009</td><td style="color:#FF0000;">FAILED</td><td>
                        
                    </td><td>
                        <input type="submit" name="ctl00$ctlContentBody$ctlGridView$ctl03$btnView" value="View" id="ctl00_ctlContentBody_ctlGridView_ctl03_btnView" disabled="disabled" />
                    </td>
    		</tr><tr style="color:#333333;background-color:#F7F6F3;">
    			<td style="color:#0000FF;">
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl04_lblPatientLastName">Test1</span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl04_lblPatientComma">, </span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl04_lblPatientFirstName">Tester</span>
                    </td><td style="color:#0000FF;"> </td><td style="color:#0000FF;">ROUTINE</td><td style="color:#0000FF;">04/03/2009</td><td style="color:#0000FF;">04/17/2009</td><td style="color:#0000FF;">DESIGNING</td><td>
                        <img id="ctl00_ctlContentBody_ctlGridView_ctl04_imgInProcess" src="images/InProcess.gif" style="border-width:0px;" />
                    </td><td>
                        <input type="submit" name="ctl00$ctlContentBody$ctlGridView$ctl04$btnView" value="View" id="ctl00_ctlContentBody_ctlGridView_ctl04_btnView" disabled="disabled" />
                    </td>
    		</tr><tr style="color:#333333;background-color:White;">
    			<td style="color:#0000FF;">
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl05_lblPatientLastName">Test2</span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl05_lblPatientComma">, </span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl05_lblPatientFirstName">Tester</span>
                    </td><td style="color:#0000FF;"> </td><td style="color:#0000FF;">ROUTINE</td><td style="color:#0000FF;">04/04/2009</td><td style="color:#0000FF;">04/18/2009</td><td style="color:#0000FF;">DESIGNED</td><td>
                        
                    </td><td>
                        <input type="submit" name="ctl00$ctlContentBody$ctlGridView$ctl05$btnView" value="View" id="ctl00_ctlContentBody_ctlGridView_ctl05_btnView" />
                    </td>
    		</tr><tr style="color:#333333;background-color:#F7F6F3;">
    			<td style="color:#009900;">
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl06_lblPatientLastName">Test3</span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl06_lblPatientComma">, </span>
                        <span id="ctl00_ctlContentBody_ctlGridView_ctl06_lblPatientFirstName">Tester</span>
                    </td><td style="color:#009900;"> </td><td style="color:#009900;">ROUTINE</td><td style="color:#009900;">04/05/2009</td><td style="color:#009900;">04/19/2009</td><td style="color:#009900;">FABRICATED</td><td>
                        
                    </td><td>
                        <input type="submit" name="ctl00$ctlContentBody$ctlGridView$ctl06$btnView" value="View" id="ctl00_ctlContentBody_ctlGridView_ctl06_btnView" disabled="disabled" />
                    </td>
    		</tr>
    	</table>
    </div>
        
     
        </div>
        <span id="ctl00_ctlMsgBox"></span>
        
     
    <script type="text/javascript">
    //<![CDATA[
    var ctl00_mnuMain_Data = new Object();
    ctl00_mnuMain_Data.disappearAfter = 500;
    ctl00_mnuMain_Data.horizontalOffset = 2;
    ctl00_mnuMain_Data.verticalOffset = 0;
    ctl00_mnuMain_Data.hoverClass = 'ctl00_mnuMain_15';
    ctl00_mnuMain_Data.hoverHyperLinkClass = 'ctl00_mnuMain_14';
    ctl00_mnuMain_Data.staticHoverClass = 'ctl00_mnuMain_13';
    ctl00_mnuMain_Data.staticHoverHyperLinkClass = 'ctl00_mnuMain_12';
    //]]>
    </script>
    </form>
    </body>
    </html>
    
    										                
    										                
                									    
  • Re: Menu control hover problem

    07-02-2009, 11:19 PM
    Answer

    rbsorensen:

    Thanks for the feedback, but I am still having a problem with this.

    I turned on Javascript error handling and I am getting an "Object expected" error every time I try to hover over the menu item.  The web page is trying to perform a "Menu_HoverStatic(this)" and that is where the error occurs.

    I then tried the example in the QuickStart link you sent, and it worked in both IE and FireFox!  However, there is a bug in IE8 - submenus are entirely white/blank areas, and are not clickable.  I noticed this in my own development, and this problem occurs in the QuickStart turorial as well.  FireFox works properly but IE8 screws up.

    But to return to the my primary issue - this may be due to the fact that the menu is on a Master page with another content page loaded.  I have included my Master page definition so that you can see if I screwed something up.  If you like I can also send the browser html View Source.

    Please check this link,

    http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

    and check this code,

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

    and check the description,

    There are two ways to implement this tag:

    • On a per-site basis, add a custom HTTP header

    X-UA-Compatible: IE=EmulateIE7

    • On a per-page basis, add a special HTML tag to each document, right after the <head> tag

    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

    Implementing the HTTP header is beneficial if a site owner wants most of their site to render as it did in IE7 or if there are no plans to update site content. Inclusion of this header honors any Quirks mode pages that belong to the site.

    Using the meta-tag on a per-page basis is beneficial when the publisher wants to opt-in specific pages to render as they did in IE7.

    Hong-Gang Chen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Menu control hover problem

    07-03-2009, 1:35 AM
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    Hong,

    I added the meta tag to the page as you indicated above, but it did not resolve the issue.

    If you like, you can see the behavior of the web page by navigating to the following site:

    www.richardsorensen.com/prother/login.aspx

    Use "admin" for the login name and you will then see the menu items.  BTW, I am also struggling with setting the focus to the username field on the login page, and have had many suggestions, but none of them has worked yet.

  • Re: Menu control hover problem

    07-03-2009, 2:34 AM

    I tested the web site, it gives me "Sys" is undefined errors.

    I suggest you read this article,

    http://geekswithblogs.net/ranganh/archive/2007/07/15/113963.aspx


    Hong-Gang Chen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: Menu control hover problem

    07-04-2009, 2:28 PM
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    Hong,

    I checked the article that you referenced - thank you very much - but the web.config file changes suggested do not seem to be significant.  The only real difference from what is in my web.config is that they set the system to use the 1.x version of the framework rather than 3.5.  I have included my web.config file below with the suggested replacements in situ, and commented out.

    Any other ideas?

    <?xml version="1.0"?>
    <configuration>
    	<configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
    					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    					<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
        <!-- *** Suggested replacement...
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
            <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
            </sectionGroup>
          </sectionGroup>
        </sectionGroup>
        -->
      </configSections>
      <appSettings>
    		<add key="ProTherDBSystem" value="SqlServer"/>
    		<add key="ProTherRequestAddress" value="net.tcp://localhost:8001/ProTherRequest"/>
    		<add key="ProTherResponseAddress" value="net.tcp://localhost:8002/ProTherResponse"/>
    		<add key="TPDBDBSystem" value="SqlServer"/>
    		<add key="WebAppGridRows" value="20"/>
    	</appSettings>
    	<connectionStrings>
    		<add name="ProTherConnectString" connectionString="Data Source=numenor.westernesse.com; Initial Catalog=ProTher; Persist Security Info=True; User Id=ProTher; Password=massgeneral" providerName="System.Data.SqlClient"/>
    		<add name="TPDBConnectString" connectionString="Data Source=numenor.westernesse.com; Initial Catalog=TPDB; Persist Security Info=True; User Id=ProTher; Password=massgeneral" providerName="System.Data.SqlClient"/>
    	</connectionStrings>
    	<location path="Login.aspx">
    		<system.web>
    			<authorization>
    				<allow users="?"/>
    				<allow users="*"/>
    			</authorization>
    		</system.web>
    	</location>
    	<location path="PlanList.aspx">
    		<system.web>
    			<authorization>
    				<deny users="?"/>
    				<allow users="*"/>
    			</authorization>
    		</system.web>
    	</location>
    	<location path="LookupItems.aspx">
    		<system.web>
    			<authorization>
    				<deny users="?"/>
    				<allow roles="admin"/>
    				<deny users="*"/>
    			</authorization>
    		</system.web>
    	</location>
    	<location path="LookupLinks.aspx">
    		<system.web>
    			<authorization>
    				<deny users="?"/>
    				<allow users="admin"/>
    				<deny users="*"/>
    			</authorization>
    		</system.web>
    	</location>
    	<system.web>
    		<!-- 
                Set compilation debug="true" to insert debugging 
                symbols into the compiled page. Because this 
                affects performance, set this value to true only 
                during development.
            -->
    		<compilation debug="true">
    			<assemblies>
    				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
          </assemblies>
        </compilation>
        <!-- *** Suggested replacement...
        <compilation debug="true">
          <assemblies>
            <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </assemblies>
        </compilation>
        -->
    		<siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    			<providers>
    				<clear/>
    				<add name="XmlSiteMapProvider" siteMapFile="Web.sitemap" type="System.Web.XmlSiteMapProvider" securityTrimmingEnabled="true"/>
    			</providers>
    		</siteMap>
    		<!--
                The <authentication> section enables configuration 
                of the security authentication mode used by 
                ASP.NET to identify an incoming user. 
            -->
    		<authentication mode="Forms">
    			<!--
                The <customErrors> section enables configuration 
                of what to do if/when an unhandled error occurs 
                during the execution of a request. Specifically, 
                it enables developers to configure html error pages 
                to be displayed in place of a error stack trace.
    
            <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                <error statusCode="403" redirect="NoAccess.htm" />
                <error statusCode="404" redirect="FileNotFound.htm" />
            </customErrors>
            -->
    			<forms name="ProTherCookie" defaultUrl="~/PlanList.aspx" loginUrl="~/Login.aspx" cookieless="UseCookies" enableCrossAppRedirects="false" protection="All" requireSSL="false" slidingExpiration="true" timeout="180"/>
    		</authentication>
    		<authorization>
    			<deny users="?"/>
    			<allow users="*"/>
    		</authorization>
    		<membership defaultProvider="clsMembershipProvider">
    			<providers>
    				<clear/>
    				<add name="clsMembershipProvider"
                 type="clsMembershipProvider"
                 connectionString="TPDBConnectString"
                 dbSystem="TPDBDBSystem"
                 sqlFieldPassword="password"
                 sqlSelect="SELECT * FROM user_profile WHERE login_name = '%UserName%'"
                 />
    			</providers>
    		</membership>
    		<roleManager enabled="true" defaultProvider="clsRoleProvider">
    			<providers>
    				<clear/>
    				<add name="clsRoleProvider"
                 type="clsRoleProvider"
                 connectionString="TPDBConnectString"
                 dbSystem="TPDBDBSystem"
                 sqlFieldRole="privileges"
                 sqlSelect="SELECT * FROM user_profile WHERE login_name = '%UserName%'"
                 sqlValues="a,admin,m,machinist,%,other"
                 />
    			</providers>
    		</roleManager>
    		<pages>
    			<controls>
    				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
        </pages>
        <!-- *** Suggested replacement...
        <pages>
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </controls>
        </pages>
        -->
        <httpHandlers>
    			<remove verb="*" path="*.asmx"/>
    			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpHandlers>
    		<httpModules>
    			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </httpModules>
        <!-- *** Suggested replacement...
        <httpHandlers>
          <remove verb="*" path="*.asmx"/>
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </httpModules>
        -->
      </system.web>
      <!-- *** Suggested addition... -->
      <system.web.extensions>
        <scripting>
          <webServices>
            <!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
            <!--
            <jsonSerialization maxJsonLength="500">
              <converters>
                <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
              </converters>
            </jsonSerialization>
            -->
            <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
            <!--
            <authenticationService enabled="true" requireSSL = "true|false"/>
            -->
            <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
              and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
              writeAccessProperties attributes. -->
            <!--
            <profileService enabled="true"
              readAccessProperties="propertyname1,propertyname2"
              writeAccessProperties="propertyname1,propertyname2" />
            -->
          </webServices>
          <!--
          <scriptResourceHandler enableCompression="true" enableCaching="true" />
          -->
        </scripting>
      </system.web.extensions>
      <!-- *** End of suggested addition... -->
      <system.codedom>
    			<compilers>
    				<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
    					<providerOption name="CompilerVersion" value="v3.5"/>
    					<providerOption name="WarnAsError" value="false"/>
            </compiler>
          </compilers>
      </system.codedom>
    	<!-- 
            The system.webServer section is required for running ASP.NET AJAX under Internet
            Information Services 7.0.  It is not necessary for previous version of IIS.
        -->
    	<system.webServer>
    			<validation validateIntegratedModeConfiguration="false"/>
    		<modules>
    			<remove name="ScriptModule"/>
    			<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </modules>
    		<handlers>
    			<remove name="WebServiceHandlerFactory-Integrated"/>
    			<remove name="ScriptHandlerFactory"/>
    			<remove name="ScriptHandlerFactoryAppServices"/>
    			<remove name="ScriptResource"/>
    			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    			<add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </handlers>
      </system.webServer>
      <!-- *** Suggested replacement...
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
          <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </modules>
        <handlers>
          <remove name="WebServiceHandlerFactory-Integrated"/>
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
      </system.webServer>
      -->
      <runtime>
    		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>
    


     

  • Re: Menu control hover problem

    07-04-2009, 4:58 PM
    Answer
    • Member
      4 point Member
    • rbsorensen
    • Member since 06-24-2009, 5:06 AM
    • Posts 19

    After day and days of looking, and trying around thirty different possible suggestions, I finally found the answer to this issue, which can potentially affect many "asp:" controls...

    In the application extension area of the web site or virtual directory (Properties -> Home Directory -> Configuration) there is a "Verify that file exists" checkbox for each extension.  For the ".axd" extension, this option must be turned off, and in my case it was turned on.

    The symptoms of this problem are and "Object expected" error on the js calls "Menu_HoverStatic(this)", "WebForm_AutoFocus()", etc.  This may also be one of the cause of the 'Sys' is undefined' error.  Hope this helps others.

     

  • Re: Menu control hover problem

    07-05-2009, 10:43 PM

    Yes, right!  I met this problem before.

    Hong-Gang Chen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (10 items)