?
Solved

ASP.NET version and menu control support

Posted on 2013-12-27
8
Medium Priority
?
600 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How to Create Failover DNS Record Sets in Route 53

Route 53 has the ability to easily configure DNS record sets specifically for failover scenarios. These failover record sets can be configured to failover to full-blown deployments in other regions or to a static HTML page that informs your customers of the issue.

 

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
 

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 1600 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

801 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