Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu based on web.sitemap is vertical, but horizontal is desired

Status
Not open for further replies.

randysmid

Programmer
Joined
Dec 12, 2001
Messages
801
Location
US
Hi all,
I've got a menu control placed on a master page, and this menu control is based on an XML file (web.sitemap). In spite of setting the menu control to horizontal, it still continues to appear vertical. Here is what the web.sitemap looks like:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns=" >

<siteMapNode url="" title="Menu" description="">
<siteMapNode url="AddJob.aspx" title="Add Job" description="" />
<siteMapNode url="showJob.aspx" title="Show Job" description="" />
<siteMapNode url="showAllJobs.aspx" title="Show All Jobs" description="" />
<siteMapNode url="showUnacceptedJobs.aspx" title="Show Unaccepted Jobs" description="" />
<siteMapNode url="getJobStepData.aspx" title="Get Job Step" description="" />
<siteMapNode url="listUncompletedDesignJobSteps.aspx" title="List Uncompleted Design Steps" description="" />
<siteMapNode title="Parent">
<siteMapNode title="child1" url="c1.aspx"/>
<siteMapNode title="child2" url="c2.aspx"/>

</siteMapNode>
</siteMapNode>

</siteMap>


Any suggestions on how to get this menu to appear horizontal, instead of vertical?

TIA, Randy
 
You can make its Orientation to Horizontal.

Sharing the best from my side...

--Prashant--
 
You mentioned in your post that you had tried to set it to Horizontal. Can you paste an example of this menu?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hi,
Does anyone know how to post an image into my message?
TIA, Randy

 
Hi,
Well, I can't place an image inside without having a web site someplace to host it. In any event, this is what it looks like:

Menu >
Add Job
Show Job
Show All Jobs
Show Unaccepted Jobs
Get Job Step
List Uncompleted Design Steps
Parent > child1
child2

As I explained earlier, the ORIENTATION property is ALREADY set to Horizontal, but it doesn't work. If you scroll up to my 18 Oct post, you'll see the XML that generates this sitemap.

Here is the HTML code for the MasterPage menu control:
<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" DataSourceID="SiteMapDataSource1" Width="70px" BackColor="#F7F6F3" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#7C6F57" StaticSubMenuIndent="10px" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
<DynamicMenuStyle BackColor="#F7F6F3" />
<StaticSelectedStyle BackColor="#5D7B9D" />
<DynamicSelectedStyle BackColor="#5D7B9D" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
</asp:Menu>


TIA, Randy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top