CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: Date Entered: 6/20/2007 2:52:25 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 69 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"mschrank99" <>
NewsGroup User
Menu rendering problem- no spacing6/20/2007 2:52:25 PM

0

messed up menu

As you can see I am having a problem with my menu control (rendered from web.sitemap)... the pages "advertisments", "contacts" and "employee resources" have sub-pages, so they get a little black arrow to space things out with.

 My problem lies with document archive and marketing department. They have no sub-pages and no arrow, so they render right next to each other. How do I fix this and put spaces in there? I tried putting &nbsp; into the site map xml file and it crashed it.

 Thanks a lot,

 Matthew

"mschrank99" <>
NewsGroup User
Re: Menu rendering problem- no spacing6/21/2007 8:26:06 PM

0

Somebody has to know how to do this.

"Amanda Wang -
NewsGroup User
Re: Menu rendering problem- no spacing6/22/2007 3:33:10 AM

0

Hi Matthew,

Can you post your html code or xml file for futher help?


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
"mschrank99" <>
NewsGroup User
Re: Menu rendering problem- no spacing6/22/2007 1:44:53 PM

0

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

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Home" description="The American Sale Extranet Home Page">

<siteMapNode url="Advertisements.aspx" title="Advertisments" description="American Sale Advertisements">

<siteMapNode url="Ad_Circulars.aspx" title="Circulars" description="Circulars"/>

<siteMapNode url="Ad_Newspapers.aspx" title="Newspaper Ads" description="Newspaper Ads"/>

<siteMapNode url="Ad_Radio.aspx" title="Radio Ads" description="Radio Ads"/>

<siteMapNode url="Ad_TV.aspx" title="Television Ads" description="TV Ads"/>

<siteMapNode url="Ad_Signs.aspx" title="Signs" description="Signs"/>

<siteMapNode url="Ad_DirectMail.aspx" title="Direct Mail" description="Direct Mail"/>

</siteMapNode>

<siteMapNode url="Documents.aspx" title="Documents" description="American Sale Documents">

<siteMapNode url="DocumentArchive.aspx" title="Document Archive" description="Repository for all kinds of files relating to American Sale"/>

<siteMapNode url="OnlineForms.aspx" title="Online Forms" description="Online Forms"/>

</siteMapNode>

 

<
siteMapNode url="Marketing.aspx" title="Marketing Department" description="Marketing Department"/>

<siteMapNode url="Contacts.aspx" title="Contacts" description="Contacts">

<siteMapNode url="CorporateDirectory.aspx" title="Corporate Directory" description="Outlook Global Addresses, organized by name with extensive information." />

<siteMapNode url="DepartmentalSort.aspx" title="Departmental Directory" description="A list of employees by department." />

</siteMapNode>

<siteMapNode url="Resources.aspx" title="Employee Resources" description="Resources">

<siteMapNode url="https://americansale.gethrinfo.com/" title="My Benergy Benefits" description="My Benergy Benefits" />

</siteMapNode>

</siteMapNode>

</siteMap>

As you can see, the problem is some of the nodes do not have sub nodes, so they do not get an arrow rendered next to them, which in turn messes up the spacing. The menu control I am using is just the built-in menu control, using the posted XML file as a datasource.

"mschrank99" <>
NewsGroup User
Re: Menu rendering problem- no spacing6/22/2007 1:44:53 PM

0

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

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

<siteMapNode url="Default.aspx" title="Home" description="The American Sale Extranet Home Page">

<siteMapNode url="Advertisements.aspx" title="Advertisments" description="American Sale Advertisements">

<siteMapNode url="Ad_Circulars.aspx" title="Circulars" description="Circulars"/>

<siteMapNode url="Ad_Newspapers.aspx" title="Newspaper Ads" description="Newspaper Ads"/>

<siteMapNode url="Ad_Radio.aspx" title="Radio Ads" description="Radio Ads"/>

<siteMapNode url="Ad_TV.aspx" title="Television Ads" description="TV Ads"/>

<siteMapNode url="Ad_Signs.aspx" title="Signs" description="Signs"/>

<siteMapNode url="Ad_DirectMail.aspx" title="Direct Mail" description="Direct Mail"/>

</siteMapNode>

<siteMapNode url="Documents.aspx" title="Documents" description="American Sale Documents">

<siteMapNode url="DocumentArchive.aspx" title="Document Archive" description="Repository for all kinds of files relating to American Sale"/>

<siteMapNode url="OnlineForms.aspx" title="Online Forms" description="Online Forms"/>

</siteMapNode>

 

<
siteMapNode url="Marketing.aspx" title="Marketing Department" description="Marketing Department"/>

<siteMapNode url="Contacts.aspx" title="Contacts" description="Contacts">

<siteMapNode url="CorporateDirectory.aspx" title="Corporate Directory" description="Outlook Global Addresses, organized by name with extensive information." />

<siteMapNode url="DepartmentalSort.aspx" title="Departmental Directory" description="A list of employees by department." />

</siteMapNode>

<siteMapNode url="Resources.aspx" title="Employee Resources" description="Resources">

<siteMapNode url="https://americansale.gethrinfo.com/" title="My Benergy Benefits" description="My Benergy Benefits" />

</siteMapNode>

</siteMapNode>

</siteMap>

As you can see, the problem is some of the nodes do not have sub nodes, so they do not get an arrow rendered next to them, which in turn messes up the spacing. The menu control I am using is just the built-in menu control, using the posted XML file as a datasource.

"tande" <>
NewsGroup User
Re: Menu rendering problem- no spacing6/22/2007 3:45:58 PM

0

Try putting in &#160; instead of &nbsp; since it's an xml file it should like this better.


(Please MARK this post as ANSWERED, if you find it helpful)
"Amanda Wang -
NewsGroup User
Re: Menu rendering problem- no spacing6/25/2007 5:30:42 AM

0

Hi

I have a test to use the code that you provider, but it works fine, did not display the probelm as you described, it is suggested that you should use a new menu control have a test to use the same datasource. below is my html code of the menu control,

<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" Font-Bold="True" Orientation="Horizontal">
           
        </asp:Menu>
                 <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
 
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













dnnforge - newsarticles

blocking specific roles form editing their profiles

editing text rollover effects in forcefullmenulist

dnn 3.x admin images problem

error in upgrade

source code updates

error loading mapquest module.

what is the portal timezone designed for?

portalalias question

index was out of range - v 3.0.12

getting applicationurl within scheduled task

creating modules for dnn 2.0

most requested enhancement..

dotnetnuke deafult.aspx page

making all registered users a contact

'maintenance plan' script for msde and osql

remember user fails on a mac using safari

announcing free video tutorials - module creation series

navigation question/configuration

why i am not happy with dnn 3.x

io error writing to the exception log

data base (dnn)

dnn 3.0.4 - create skin error

3.0.6 usersonline

help? how can i add my own accessdataprovider script file 03.00.00sql

issue dnn-957 still persists

dnn 1.0.10 & footers?

please help - school system portal - document module issue

custom sqldataprovider keeps causing underconstruction.htm - please help.

response.redirect to a https://... won't work

suggestion: webcast presentation when dnn 2.0 is released

help with solpartmenu

announcements do not syndicate the content

changing the account profile page

links1 links2 (having both horiz. and vert menus)

newsfeed (rss) module: weird behaviour

labelcontrol and texteditor

how are future core modules selected?

migrating posts

dnn 2.0 - some core modules suggestions

great colorschemes for your skin designs

dotnetnuke latest version download

problems upgrading 4.x to 4.0.1

frustrated newbie needs some help getting started

making a living out of dnn work

disabling friendly url feature!!

dnn2 to dnn3

ability to have (grand)child portals?

re: when software projects go way over budget!

picture gallery

   
  Privacy | Contact Us
All Times Are GMT