Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET4.0
Hello,
 
I am using Menu bar of ASP.net in my project by creating it as user control in .ascx file. Menu data, text, links are populating from Database. Following is the code which generates Menu.
 
<table style ="z-index:auto">
<tr>
            <td>
                <asp:Menu ID="menuBar" StaticEnableDefaultPopOutImage="true" runat="server" Orientation="Horizontal"
                    BackColor="#666666" DynamicHorizontalOffset="5" DynamicVerticalOffset ="10" Font-Names="Verdana" Font-Size="0.7em"
                    ForeColor="White" StaticSubMenuIndent="8px"  >
                    <DynamicHoverStyle BackColor="White" ForeColor="#666666" BorderColor="#666666" BorderStyle="Solid"
                        BorderWidth="1px" />
                    <DynamicMenuItemStyle HorizontalPadding="10px" VerticalPadding="7px" BorderColor="White"
                        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="12px" />
                    <DynamicMenuStyle BackColor="#666666" BorderColor="White" BorderStyle="Solid" BorderWidth="1px" />
                    <DynamicSelectedStyle BackColor="White" BorderColor="#666666" BorderStyle="Solid"
                        BorderWidth="1px" ForeColor="#666666" />
                    <StaticHoverStyle BackColor="White" ForeColor="#666666" BorderColor="#666666" BorderStyle="Solid"
                        BorderWidth="1px" />
                    <StaticMenuItemStyle HorizontalPadding="15px" VerticalPadding="10px" BorderColor="White"
                        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="12px" />
                    <StaticSelectedStyle BackColor="White" BorderColor="#666666" BorderStyle="Solid"
                        BorderWidth="1px" ForeColor="#666666" />
                </asp:Menu>
            </td>
        </tr>
 
</table>
In header i am registering the control as following.
 
<%@ Register src="~/Menu.ascx" tagname="MenuControl" tagprefix="MenuControl" %>
 
I am calling the menu on form as following
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
<MenuControl:MenuControl id="MenuControl1" runat="server">
 
Below the menu i have the following code ex:-
 
<table class="vcTable" style="removed 140px; removed: absolute; removed 210px; width: auto; height:auto">
 

    <tr>
            <td colspan="7" align="left" style ="height:3px; font-weight: bold;">
                User Access Registration Form
            </td>
            <td colspan="1" align="right" style ="height:3px; font-weight: bold;" rowspan="2">                
          </td>
    </tr>
</table>
 
Problem here is in the client machines website menu submenus are hiding back to the content of page. It is working fine on Dev machine. But on user end it is hiding back to page content.
 
Kindly help.
 
Thanks & Regards,
Chowdary.
Posted 27-Dec-12 18:35pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 370
1 Sergey Alexandrovich Kryukov 329
2 BillWoodruff 235
3 Afzaal Ahmad Zeeshan 209
4 CPallini 195
0 OriginalGriff 5,560
1 DamithSL 4,476
2 Maciej Los 3,942
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 27 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100