Solved

ASP.NET version and menu control support

Posted on 2013-12-27
8
565 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

16 Experts available now in Live!

Get 1:1 Help Now