Results 1 to 4 of 4
-
01-21-2011, 12:58 PM #1
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,172
- Thanks
- 744
- Thanked 699 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
Asp Menu Hiding Behind Page Elements
If your asp menu elements hide behind other elements on the page, this could be a potential solution for you.
Surround the asp menu in a div with a z-index style with it.
<div style="z-index:200">
<asp:Menu ID="Menu1" runat="server" StaticDisplayLevels="1">
<Items>
<asp:MenuItem Text="File" Value="File">
<asp:MenuItem Text="New" Value="New"></asp:MenuItem>
<asp:MenuItem Text="Open" Value="Open"></asp:MenuItem>
</asp:MenuItem>
</Items>
</asp:Menu>
</div>Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
-
01-28-2011, 06:04 PM #2
- Join Date
- Sep 2010
- Location
- Mallorca/Spain
- Posts
- 93
- Thanks
- 0
- Thanked 2 Times in 2 Posts
- Blog Entries
- 2
- Feedback Score
- 0
This seems to be a CSS related problem, not ASP
-
01-28-2011, 06:27 PM #3
- Join Date
- Apr 2008
- Location
- Boston, USA
- Posts
- 13,172
- Thanks
- 744
- Thanked 699 Times in 550 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
-
02-11-2011, 07:38 AM #4
Banned
- Join Date
- Nov 2010
- Location
- Delhi
- Posts
- 103
- Thanks
- 0
- Thanked 4 Times in 4 Posts
- Feedback Score
- 0
Try below code, hope it helps.
protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
System.Web.UI.WebControls.Menu menu = (System.Web.UI.WebControls.Menu)sender;
SiteMapNode mapNode = (SiteMapNode)e.Item.DataItem;
System.Web.UI.WebControls.MenuItem itemToRemove = menu.FindItem(mapNode.Title);
if (mapNode.Title == "Node")
{
System.Web.UI.WebControls.MenuItem parent = e.Item.Parent;
if (parent != null)
{
parent.ChildItems.Remove(e.Item);
}
}
}
Similar Threads
-
Rate from 1 to 10, tell me the most important "on page" elements
By ovaismirza22 in forum Search EnginesReplies: 11Last Post: 03-05-2010, 11:43 PM -
Man Arrested for Spying Hiding Under Man's Bed
By webdigo in forum General TalkReplies: 7Last Post: 08-13-2009, 07:21 AM -
SEO and Hiding HTML
By manik in forum Search Engine OptimizationReplies: 8Last Post: 06-29-2009, 12:56 AM -
My CSS Menu - Menu Generator
By tkien in forum ReviewsReplies: 1Last Post: 12-29-2008, 11:11 PM -
Yahoo hiding behind Google?
By manik in forum YahooReplies: 1Last Post: 05-14-2008, 06:06 AM


Reply With Quote

