Web Forms :: Menu - Can't Change The Item Spacing Property
Sep 3, 2010
I'm trying to use the menu control for the first time in ASP.NET and everything is fine except for the fact that I can't seem to change the item spacing property. My menu is a horizontal menu where the menu items have come from a sitemap file. I've tried changing the menu item spacing in both the dynamic and state menu item properties but nothing seems to change it. I've also tried changing the item spacing via css but that doesn't work either.
[Code]....
View 3 Replies
Similar Messages:
Jul 10, 2010
I added a menu avigation control in my page and i did this:
<div style="background-color: Maroon">
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" ForeColor="Black" Font-Bold="true"
BackColor="Chocolate">
<Items>
<asp:MenuItem Text="Home"></asp:MenuItem>
<asp:MenuItem Text="About Us"></asp:MenuItem>
<asp:MenuItem Text="Services"></asp:MenuItem>
<asp:MenuItem Text="Careers"></asp:MenuItem>
<asp:MenuItem Text="Contact Us"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
but i cant give proper spacing between the menu items right now it is appearing like this: how to give proper spacing between the menu items them?
View 14 Replies
Nov 9, 2010
I'm using the AJAX ModalPopupExtender control in order to popup a "Login" panel. My problem is that the TargetControlID property happens to be an ASP.Net Menu Control Item. How do I reference that menu item where it's becomes a valid value for the TargetControlID property?
View 3 Replies
Feb 10, 2011
how to change the background color of a selected menu item? The background color changes on the word of the dropdown menu but not the entire row section of the menu item. Each menu item has a different word length but I want the background
color length to be consistent throughout the dropdown dynamic menu. I also what to change the background parent when a menu item is selected.
View 1 Replies
Mar 2, 2010
I have trying to create spacing between items in my menu control and I have been totally unable to create any item spacing. I have tried every property with the word spacing and still I am unable to space my menu items.
View 6 Replies
Sep 2, 2010
I am experiencing a weird issue with my menu control on a website I just launched. Basically it seems like the top and bottom padding for the control is like 400 pixels on certain pages. This does not happen on IE6, IE8, Firefox 3.6, or chrome. Only IE7 (also IE8 compatibility mode). The other weird thing is that it happens 90% of the time and not 100%, so I can't get full consistency. Here is an image of what it should look like versus what the issue is. [URL] bad menu What I have done so far is remove skiplinktext and also tried to remove the 4px padding I had, neither helped.
[URL]
menu nav = home page > studio info > Registration > Register now
View 3 Replies
May 27, 2010
I added a menu control to my page that is displayed vertically. I couldn't find a way to add spaces (I'd like about 5px.) between the menu items, so I just did something similar to this:
<asp:Menu ID="Menu1" runat="server" BackColor="ActiveBorder">
<Items>
<asp:MenuItem NavigateUrl="~/About.aspx" Text="One" />
</Items>
</asp:Menu>
<p></p>
<asp:Menu ID="Menu2" runat="server" BackColor="ActiveBorder">
<Items>
<asp:MenuItem NavigateUrl="~/Default.aspx" Text="Two" />
</Items>
</asp:Menu>
I just created multiple menu controls with a single menu item control in them, and placed a break between the menu controls. This seems very wrong to me, but I could not figure out another way. Also, this is a bit off subject, but is it okay to use empty paragraph tags as line breaks?
View 2 Replies
Aug 31, 2010
I have dropdown menu item ("pin this site") that i need to hide it or hide menu item itself ("My Network").
When I saw viewsource on page, I got below code.
<a class="zz1_TopNavigationMenu_1 ms-topnav zz1_TopNavigationMenu_3
ms-topnavselected zz1_TopNavigationMenu_9" href="http://mynetworkqa.spe.org"
style="border-style:none;font-size:1em;">My Network</a>
<a class="zz1_TopNavigationMenu_1 ms-topNavFlyOuts zz1_TopNavigationMenu_6"
href="javascript:__doPostBack(,
'ctl00$PlaceHolderTopNavBar$PlaceHolderHorizontalNav$topSiteMap''Pin')"
style="border-style:none;font-size:1em;">Pin this site</a>
How can I hide menu item?
View 1 Replies
Apr 19, 2010
I am need to build a menu and each item of the menu has an image as background knowing that i depend on sitemap to build the menu i used
[Code]....
where menuitem is in a css sheet
[Code]....
it display the image but in the wrong place?
View 1 Replies
Feb 21, 2011
i have a menu which is collapses as a default. This is done by following query.
[Code]....
Now, the problem is, whenever i click on any menu item by expanding the menu, the item page opens but the menu collapses again. I want to let the menu remain as expanded although a menu item is clicked. i.e. menu shouldn't refresh when a menu item is clicked.
View 6 Replies
May 7, 2015
Sitemap & Menu:
<asp:SiteMapDataSource ID="Menu" runat="server" ShowStartingNode="false" />
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" OnMenuItemDataBound="OnMenuItemDataBound" DataSourceID="Menu" >
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="Menu" />
<asp:MenuItemStyle CssClass="Level" />
</LevelMenuItemStyles>
</asp:Menu>
<siteMapNode url="javascript:Logout" title="Logout" description="Logout" roles="*">
<siteMapNode title="Logout" description="Logout"></siteMapNode>
</siteMapNode>
I want OnClick event instead of navigation .
View 1 Replies
Jan 10, 2011
I am using frames in my webpage.in one of the frames i have a menu control whose items are database driven.when click on the menu item, i want another page to be displayed in other frame.
now i want to pass the the selected menu item text to the other page using session variable which is in the menu item click event method.but the thing is when i click on the menu item, the click event is not firing.
is there any better way to pass the selected menu item text to the other page?
View 1 Replies
Apr 15, 2010
I am working with asp.net 2.0 I have 1 problem Regarding Menu Control I used menu control in Master page. Now I have to find out Menu Item from Menu control depending on Condition. how to do that on server and Client side.
My code:
<asp:Menu runat="server" Orientation="Horizontal">
<StaticMenuItemStyle CssClass="jobTabNormal" />
<StaticSelectedStyle CssClass="jobTabSelected" />
<DynamicHoverStyle CssClass="jobTabHover" Font-Bold="true" />
<DynamicMenuStyle />
<DynamicSelectedStyle CssClass="jobTabDynamicSelected" />
<Items>
<asp:MenuItem Text="Job Details" Selected="true" NavigateUrl="#" Enabled="true">
</asp:MenuItem>
<asp:MenuItem Text="Cargos" Enabled="false" NavigateUrl="~/Pages/cargoDetails.aspx">
</asp:MenuItem>.......
View 3 Replies
Sep 20, 2010
I have an asp.net menu in which i have to let some nodes visible or invisible base on some logic.I know i can find value by item but i wnated to FindItemByValue of my asp.net menu.Could it be possible?
View 3 Replies
Jul 15, 2013
i have a asp menu in master page and it is populated from database.
i want if user click a link that menu link's background color should change how to do?
View 1 Replies
Feb 2, 2011
I have a Menu. When user clicks on the menu , I need to pass a command argument. How is that done ?
This is the code for
[code]....
View 2 Replies
May 7, 2015
How to center the menuitems and highlight the selected menuitem in menu control in asp.net?
<asp:Menu ID="maspageMenu" runat="server" BackColor="#2D2D30" Width="100%" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1.4em" Font-Strikeout="True" Font-Underline="True" ForeColor="#009933" Orientation="Horizontal" StaticSubMenuIndent="10px" BorderStyle="Groove">
<DynamicHoverStyle BackColor="#18624F" ForeColor="White" />
<DynamicMenuItemStyle BackColor="White" HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicMenuStyle BackColor="White" BorderStyle="Double" />
[CODE]...
View 1 Replies
Mar 24, 2011
I am using aspnet menu control and i want to hide the item initially on page load and show the item after an event is trigger say button lick event Can any one give me an example?
View 6 Replies
Sep 22, 2010
I have a menu bound to sitemapDatasource and that has 4 independent items with an empty root node as explained in
http://forums.asp.net/t/1176226.aspx
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" DataSourceID="menu_SiteMapDataSource"
View 2 Replies
Jan 29, 2010
I want to display page in IFrame when you click on menu item. This is how i am writing the code for it.
[code]...
But its opening the page in new window instead of the given Target of Iframe.
View 3 Replies
Feb 14, 2010
I want to change each items color in the asp menu control while the menu is generating dynamically from a database.
i.e. 1st item's background color is yellow and 2nd item's background color is red and so on.
View 2 Replies
Mar 2, 2011
i am using asp:menu for showing the menus in masterpage. If i click the menu item 1, the corresponding page is loading in the content page. I need that the selected Menu item should be highlighted by some color.
[code]....
View 2 Replies
Aug 12, 2010
I have one asp leftmenu control in my project.when I select one menu item of menu control that Should be highlight.
how to highlight the selected asp menu item?
View 8 Replies
May 27, 2010
how to set the navigateurl for menu item in code behind .
MenuItem MainMenu = new MenuItem();
i have to set that below code for main menu at dynamically.
NavigateUrl="javascript:navigatetopage();"
function navigatetopage() {
if (confirm("Are you sure want to move")) {
// window.location = "test.aspx";
return true;
}
}
View 7 Replies
Mar 7, 2010
Lets say i got "View inbox", "View My Product", "My Profile" on top as the main menu in the admin control panel page
I want to do like this,
when user click on View inbox, the center of the content is to show a view message page, and on the left hand side theres a column showing the related function of View inbox, like "View mesage", "Write new message", "Send message" and etc.
Then when admin click on View My Product, the panel will change to a list of function of "All my products", "Add new products", and so on...
Is there any way i can do like this where each diff menu item change the panel according to the related menu?
Or must i duplicate the panels to each of the page that i need to use?
View 2 Replies