Two menus and two different sitemap files

ok....heres my problem. I have two menu's ...each using its own sitemap file.

<siteMap defaultProvider="MainMapProvider" enabled="true">
      <providers>
        <clear />
        <!-- Get rid of the inherited standard provider -->
        <add name="MainMapProvider" description="Main menu map" type="System.Web.XmlSiteMapProvider" siteMapFile="Main.sitemap" securityTrimmingEnabled="true" />
        <add name="FooterMapProvider" description="Footer menu map" type="System.Web.XmlSiteMapProvider" siteMapFile="Footer.sitemap" securityTrimmingEnabled="true" />
      </providers>
    </siteMap>
The first tabbed menu is using the "mainmapprovider" and the footer menu is using the "footermapprovider"....both are set to orientation="Horizontal.
 
 			
		<div id="tabs">
            <asp:Menu ID="Menu1" runat="server" DataSourceID="MainMapProvider" CssSelectorClass="PrettyMenu" Orientation="Horizontal" Width="200px" EnableViewState="False"  >
            </asp:Menu>
             
			
			<div id="search" style="height: 31px">
					<p><asp:TextBox ID="TextBox1" runat="server" Height="19px" Width="319px"></asp:TextBox><asp:Button ID="Button1"
                            runat="server" Text="Search" Height="25px" /> </p>
			</div>
		</div>
	 	<br /><br /><br />
        <div>
        <asp:contentplaceholder id="Main" runat="server">
        </asp:contentplaceholder>
        </div>
    <div class="footer">
        <asp:Menu ID="Menu2" DataSourceID="FooterMapProvider" runat="server" Orientation="Horizontal" EnableViewState="False" DynamicEnableDefaultPopOutImage="False" StaticEnableDefaultPopOutImage="False"  >
    </asp:Menu>
	</div>
		 <asp:SiteMapDataSource ID="MainMapProvider" ShowStartingNode="false" runat="server" SiteMapProvider="MainMapProvider" /> 
		<asp:SiteMapDataSource ID="FooterMapProvider" ShowStartingNode="false" runat="server" SiteMapProvider="FooterMapProvider" />
       
</form>
The problem is that the main tabbed menu shows horizontal but the footer menu shows vertical. No matter what I do it wont show horizontal. 
Their are not other CSS settings or properties set that could affect this. I've tryed adding other menus and the same thing happens to them.
I've tryed setting the width of the menu to 500px..still not resolved! How do I get this menu to show horizontal?
 
 
Jer
0
devinmccloud
4/14/2007 3:25:28 AM
asp.net.navigation-controls 13714 articles. 0 followers. Follow

2 Replies
770 Views

Similar Articles

[PageSpeed] 51

Hi Jer,

I tried to varify the issue, however it works fine on my box.

MasterPage:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Menu2.master.cs" Inherits="SiteMap_P.Menu2" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title>Untitled Page</title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

        <asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal">

        </asp:Menu>

        <asp:SiteMapDataSource ID="SiteMapDataSource1" SiteMapProvider="Web1" runat="server" />

        <br />

        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">

        </asp:ContentPlaceHolder>

    </div>

        <asp:Menu ID="Menu3" runat="server" DataSourceID="SiteMapDataSource2" Orientation="Horizontal">

        </asp:Menu>

        <asp:SiteMapDataSource ID="SiteMapDataSource2" SiteMapProvider="Web2" runat="server" />

    </form>

</body>

</html>

 

Web.config:

                <siteMap>

 

                        <providers>

                                <add name="Web1"

                                        type="System.Web.XmlSiteMapProvider"

                                        siteMapFile="Web1.Sitemap"

                                />

                                <add name="Web2"

                                        type="System.Web.XmlSiteMapProvider"

                                        siteMapFile="Web2.Sitemap"

                                />

                        </providers>

 

                </siteMap>


Can you try to switch the menu in your code to test it again to see if the problem still exists? e.g.

             
           <asp:Menu ID="Menu2" DataSourceID="FooterMapProvider" runat="server" Orientation="Horizontal" EnableViewState="False" DynamicEnableDefaultPopOutImage="False" StaticEnableDefaultPopOutImage="False" >

        <asp:contentplaceholder id="Main" runat="server">
        </asp:contentplaceholder>
        </div>


            <asp:Menu ID="Menu1" runat="server" DataSourceID="MainMapProvider" CssSelectorClass="PrettyMenu" Orientation="Horizontal" Width="200px" EnableViewState="False"  >
            </asp:Menu>

    </asp:Menu>

Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

“Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
0
Zhao
4/18/2007 7:06:15 AM

Thanks for responding Zhao Ji Ma,

    I'm pretty sure this is a CSS friendly adaptors issue. I only have this problem with the adaptors installed.


Jer
0
devinmccloud
4/23/2007 10:31:42 PM
Reply:

Similar Artilces:

how do i link two different sitemap with the use of menu control in one .aspx file to two different hyperlink in the master page?
I have two menu control with similar file(eg.defect.aspx) in the master page, whenever i click the similar file(eg.defect.aspx) in either menu control, it will show both the menu control(eg.student menu and staff menu), but i only want to show only either one of the menu (eg,student menu only). Is there any solution to my problem? Am i able to use similar file(eg.defect.aspx) for two different sitemap and two menu control and only show one menu control. Hey, What should or should not be visible; the whole menu, or the selected field?  Are you h...

two menu controls required in one aspx page with two different sitemap file
dears,in vs2005 website how it is possible to add two menus with two different sitemaps ??...here i did one menu control like as follows...now this menu is working fine with SiteMapDataSource1  and web.sitemap.now my requirement is i want to add one more menu control with another sitemap file...is it possible to do that way?can anybody help me for this? <asp:Menu ID="Menu1" runat="server" BackColor="Green" BorderColor="Green" BorderStyle="Ridge"              &...

how can i take two sitemapdatasource controls for two sitemap files
Hi, I have 2  web.sitemap files, for 2 diffrent languages, when user login with 1 st langauge mode, i want to display that language menus and  user login with 2  nd langauge mode, i want to display that language menus here i am displaying menus in Master page, -----Her can i take two sitemapdatasource controls for two sitemap files if then how i assign  sitemap files to two diffrent sitemapdatasource controlsadilahmed -----Her can i take two sitemapdatasource controls for two sitemap files or can i take two web.sitemap files   and bind  wi...

Linking two controls in two seperate .ascx files
hello,im trying to make a couple of image buttons in one usercontrol affect the ActiveViewIndex state of my multiview in another control so far both codebehinds look like this...1: this is where the multiview is located, the MV is called contentsusing System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;    public partial class UserControls_Content : System.Web.UI.UserControl  ...

testing two three two three two two
Test ...

having two navigation menus from home page separating two aspects of the site.
Hi i want to have a home page which has two navigation menus, one to navigate the main content of the site for instance types of photography: portraiture, documentary, landscape etc. and another separate navigation in the footer for perhaps for more specialist users that might contain: blog, resources, contact. how do i go about doing this? can i create two sitemaps that both have the rootnode as the home page so i have two distinct sitemaps to bind to the two nav controls and traverse. or if i have to only have one sitemap with the homepage as the the root node how do i achieve th...

Any difference between two control classes in net 2005
I have a problem with net 2005, i have two controls having the same namespace (namespace is: Controls), the first control class's name is 'Controls_ToolBar', and the second control class's name is 'Controls_ToolBarSeparator'. In the first class, i declare a variable which points to the second class, but it give error. Following is my code:First control class:Namespace Controls   Public Class Controls_ToolBar      Inherits Controls.ControlBase      Private lastLabel As Controls.Controls_ToolBarSeparator = Noth...

Combining two different datasoruces from two different servers?
Hi I'm triying to combine two different sql datasoruces which are from two different sql servers. But I can't seem to get it work I would appreciate any help you guys can provide. Here is my code so far. Dim PCconnectionString As String = ConfigurationManager.ConnectionStrings("CenterConnectionString").ConnectionStringDim TCconnectionString As String = ConfigurationManager.ConnectionStrings("CoreConnectionString").ConnectionString Dim PCcon As SqlConnection = New SqlConnection(PCconnectionString)Dim TCcon As SqlConnection = New SqlConnection(TCconnectionString) Dim sqlPC As String = "S...

Is there a way to merge two different two local places.sqlite file copies together?
Hello. I have two different local copies and would like to merge them together as one. I do not want to use Mozilla's remote synchronization feature. Thank you in advance. :) -- "He who storms in like a whirlwind returns like an ant." --Borneo /\___/\ Ant(Dude) @ http://antfarm.ma.cx (Personal Web Site) / /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net | |o o| | \ _ / If crediting, then use Ant nickname and AQFL URL/link. ( ) If e-mailing, then axe ANT from its address if needed. Ant is currentl...

Two Menu controls in the same web site with different sitemaps?
I want a top nav menu and a side nav menu.  However, the menu control seems hardcodied to a singe web.sitemap.  Can you have more than one web.sitemaps?  If so, how do you map them to the different menu controls via the data source?  The data source does not seem to name or map the web.sitemap from what I can see.I tried to use the more generic xml file but can't get it to work even using the Microsoft example code...posted the question but got no answer.  I don't really need to use the xml file if I can somehow map more than one site map. You can have seve...

access two different folder for two different group of users
Hi: I have a website, teachers and students can login and access their pages: if user is a teacher, he/she can access pages in Folder: "Teacher" only, if student, then can access folder "Student" only. I am using Membership login function, easy to use, but if a student or a teacher login successfully, he/she can access both "Teacher" and "Student" folders. I need find a good way that: if login is a student (I can find way to get that), the user can access "student" folder only. if login is a teacher (I can also using code to get that) ...

two image control how to pass different image url from css file
there r two image control how to pass the different image url of that image from css file how to pass  different image url from that image url in ur css file are the path how to take that url to ur image url sanjib420:there r two image control how to pass the different image url of that image from css file how to pass  different image url from that image url in ur css file are the path how to take that url to ur image url Hi friend, I am not sure what is your mean? Could you give me an example? Waitting for your feedback, Hong GangHong-Gang ChenMicrosoft Online Community Su...

Need to combine data from two different servers on two different sites.
If I wanted to transfer data from one novell sever to another via crossover cable. both servers are novell 6.5 How do I change my ip setting's on one of the servers in order to copy data. This server is coming from a totally different network in a different ip range. Without using a windows workstation How could I transfer data? say data volume to data volume. or sys public to sys public. I think I have some software packages there. Or if I must use a windows workstation do I need to add this server to the tree in order to have it map the volumes to drive letters then copy ...

printing in two different printer for two different datawindows but from one screen
Hi all Our cilent has asked for facitly from a perticular screen that the two different report sholud be printed on two different printer from two different datawindows when a form is filled. First of all is it possible. and if possible pl reply. i tried to go by <DW Control Name>.Object.DataWindow.Printer but later after studying help file i come to know that this function is descibe onle i.e modify function can not be appled. Reagards Trilok Rawat Yes, it is very much possible....go to www.powerwhizz.com for printer utility. On Tue, 20 Feb 2001 04:37:...

Web resources about - Two menus and two different sitemap files - asp.net.navigation-controls

What to Expect at the Republican Debate
Seven Republican candidates will face off on the main stage in North Charleston, South Carolina, Thursday night, the smallest primetime field ...

Police: Maine Woman's Body Found 2 ½ Years After Her Death
Police say the woman whose body was found by officers in her southern Maine home last week had been dead for as long as 2 ½ years.

U.S. Sailors Freed by Iran, But Their Humiliation Persists
There is something viscerally humiliating to many Americans about seeing those U.S. sailors in Iranian captivity. They’re on their knees, with ...

Atresmedia, Warner’s ‘Palm Trees’ Dislodges ‘Star Wars’ from Spanish B.O. No. 1 Berth
Distributed by Warner Bros. Intl. Pictures Spain, Fernando Gonzalez Molina’s epic romance “Palm Trees in the Snow,” an Atresmedia Cine production, ...

David Bowie Breaks Vevo Record with 51 Million Video Views in 24 Hours
David Bowie’s passing earlier this week caused a spike in demand for his music — and at Vevo, Bowie even broke a record: Bowie’s music videos ...

Peyton Manning Takes a Sarcastic Shot After Al Jazeera America Folds
When asked about the end of Al Jazeera America in a press conference, Denver Broncos quarterback Peyton Manning took a sarcastic shot at the ...

Questions and answers about new self-driving car safety data
While self-driving cars already are being tested on public roads, newly released safety data support the cautionary view that the technology ...

Captured drug kingpin El Chapo tried to trademark his own name in case he really got big
MEXICO CITY — Drug lord Joaquin "El Chapo" Guzman was eager to set up a face-to-face meeting with Mexican actress Kate del Castillo, and had ...

Alan Rickman dead aged 69 after battle with cancer
Hollywood actor Alan Rickman has died at the age of 69 after waging a secret battle with cancer,

Microsoft will let your unlock your Windows 10 PC with an app
Microsoft plans to give Windows 10 users another option to speed up the process of unlocking their PCs. The software giant has introduced an ...

Resources last updated: 1/14/2016 2:03:21 PM