Solved

ASP.NET version and menu control support

Posted on 2013-12-27
8
553 Views
Last Modified: 2014-01-02
My menu works properly on my local machine, but not on the host server.
How do I find out which version of asp.net is being used on my local machine?

How can I set web.config statements that specify a asp.net version?

I realize that this may require a different web.config file to be published to the server.

Thanks,
0
Comment
Question by:Dovberman
  • 5
  • 3
8 Comments
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 39742699
What happened on the server side with the menu??
It's a 3rd party control??

On the Visual Studio you go to WebSite/Start Option /Build and you will see the Framework that you're using

To Set The TArget Framework on the Web.Config
<system.web>
    <compilation debug="false" strict="false" explicit="true" targetFramework="4.0" />
</system.web>

Also double check that the Control, if is a 3rd party control, gets into the Web.Config on the host server and CHeck in both browser(Mozilla Firefox and IE just in Case)
0
 

Author Comment

by:Dovberman
ID: 39742733
What happened on the server side with the menu??
It was installed with Visual Studio 2012.

The menu dynamic items drop down on the local machine but not on the server.

On the Visual Studio you go to WebSite/Start Option /Build and you will see the Framework that you're using.

It is .NET Framework 4.5

To Set The TArget Framework on the Web.Config
<system.web>
    <compilation debug="false" strict="false" explicit="true" targetFramework="4.0" />
</system.web>

web.Config:

I just changed 4.0 to 4.5.

Should I change the following from  Version=3.5.0.0, to 4.5?

 <compilation debug="true" targetFramework="4.5" >
      <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"/>
        <add assembly="System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.ComponentModel.DataAnnotations, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <!--
        <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0,Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral,PublicKeyToken=B03F5F7F11D50A3A"/>
       
        notes
        -->
      </assemblies>

    </compilation>

    <httpRuntime targetFramework="4.5" />

The server is running 4.5.50709.

Should I change 4.5 to 4.5.50709 in my web.config?

Thanks,
0
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 39742762
You don't need to change on your web.config the Add Assembly references if is not a control that use only 3.5 Framework and not supported on 4.5, when you compiled the project and published, it will do all for you. ALso check the compatibility view on your IE.

Did you try with both browsers as I tell you before??
0
 

Author Comment

by:Dovberman
ID: 39742802
Thanks for your suggestions.

I did not try yet with other browsers.

This is how I fixed it:

                <asp:Menu ID="Menu1" runat="server"
                    Orientation="Horizontal"
                    CssClass="Menu" StaticHorizontalOffset="1"
                    DynamicHorizontalOffset="8"
                    StaticHoverStyle-CssClass="auto-style1"
                    StaticSelectedStyle-CssClass="auto-style1"
                    IncludeStyleBlock="False"
                    DynamicHoverStyle-Width="160px"
                    Width="100px"
                    RenderingMode="Default"
                    DisappearAfter="100"
                    DynamicMenuItemStyle-ItemSpacing="2px"
                    DynamicMenuStyle-BackColor="Yellow"
                    DynamicMenuItemStyle-BackColor="Yellow"
                    DynamicMenuItemStyle-VerticalPadding="1px"
                    DynamicMenuStyle-BorderStyle="Solid"
                    DynamicMenuStyle-HorizontalPadding="1px"
                    DynamicMenuStyle-VerticalPadding="1px"
                    DynamicSelectedStyle-BackColor="Lime"
                    DynamicVerticalOffset="2"
                    DynamicHoverStyle-BackColor="#00CCFF"  
                    MaximumDynamicDisplayLevels="3" Height="48px">
                   
                       <Items>
                            <asp:MenuItem NavigateUrl="#" Text="Basics" Value="mnuBasics">
                                <asp:MenuItem
                                    NavigateUrl="Default.aspx" Text="Home" Value="mnuHome" >
                                </asp:MenuItem>
                   
                                <asp:MenuItem
                                    NavigateUrl="ContactUs.aspx" Text="Contact Us" Value="mnuContactUs">
                                </asp:MenuItem>

                            </asp:MenuItem>
                   
                            <asp:MenuItem NavigateUrl="#" Text="Features" Value="mnuFeatures">
                                <asp:MenuItem
                                    NavigateUrl="BestPicks.aspx" Text="Best Picks(Registered Users)" Value="mnuBestPicks">
                                </asp:MenuItem>
                   
                                <asp:MenuItem
                                    NavigateUrl="FinanceTermsDefn.aspx" Text="Finance Terms" Value="mnuFinanceTerms">
                                </asp:MenuItem>
 
                            </asp:MenuItem>
               
                           <asp:MenuItem NavigateUrl="#" Text="Registration" Value="mnuRegistration">
                   
                                <asp:MenuItem
                                    NavigateUrl="RenewSubscription.aspx" Text="Renew Subscription" Value="mnuRenew">
                                </asp:MenuItem>

                                <asp:MenuItem
                                    NavigateUrl="RegisterFree.aspx" Text="Free Trial" Value="mnuFreeTrial">
                                </asp:MenuItem>
                   
                                <asp:MenuItem
                                    NavigateUrl="ReplacePassword.aspx" Text="Replace Password" Value="mnuReplacePassword">
                                </asp:MenuItem>

                                <asp:MenuItem
                                    NavigateUrl="ChangePassword.aspx" Text="Change Password" Value="mnuChangePassword">
                                </asp:MenuItem>
                            </asp:MenuItem>
               
                            <asp:MenuItem NavigateUrl="#" Text="Site Usage Help" Value="mnuSiteHelp">
                                <asp:MenuItem
                                    NavigateUrl="ChangePasswordInstructions.aspx" Text="Password Change Help" Value="mnuChangePasswordHelp">
                                </asp:MenuItem>
                            </asp:MenuItem>

                    <asp:MenuItem NavigateUrl="#" Text="Admin Only" Value="mnuAdminOnly">
                        <asp:MenuItem
                        NavigateUrl="Admin/AdminMenu.aspx" Text="Admin Menu" Value="mnuAdminMenu">
                        </asp:MenuItem>
              </asp:MenuItem>
             
             </Items>
         </asp:Menu>

These were the most important changes:

IncludeStyleBlock="False"
RenderingMode="Default"
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:Dovberman
ID: 39742806
Here is the result.  I could not set the colors. However after 5 days of work, this is acceptable.
MenuFixed.jpg
0
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 400 total points
ID: 39742831
Which version of IE Did you have 11??
Check the compatibility view of the IE on your site...Looks like the problem is that one.

Also I will suggest to you that use a CSS menu and will be easy for you and more professional look. Take a look at this link

http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-a-kick-butt-css3-mega-drop-down-menu/

also will give some links for double check if you got some time
http://www.noupe.com/css/100-great-css-menu-tutorials.html
0
 

Author Comment

by:Dovberman
ID: 39750955
I am using IE 10 on Windows 8. The menu works well on my machine, but not on the host server.

The links you provided are excellent.  I will save them for future reference.

Thanks,
0
 

Author Closing Comment

by:Dovberman
ID: 39750956
Thank you.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now