Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP.NET version and menu control support

Posted on 2013-12-27
8
Medium Priority
?
609 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

610 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