CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
web_forms
getting_started
data_presentation_controls
dotnetnuke
data_access-sql_server_sql_server_express_and_sqldatasource_control
security
client_side_web_development
novell-support-groupwise-6x-clients
data_access-data_access_and_objectdatasource_control
asp-net_ajax-asp-net_ajax_control_toolkit
novell-support-netware-6x-install-upgrade
asp-net_ajax-asp-net_ajax_discussion_and_suggestions
novell-support-netware-6x-administration-tools
master_pages_themes_and_navigation_controls
configuration_and_deployment
novell-support-netware-client-winnt-2x-xp
novell-support-groupwise-7x-clients
asp-net_ajax-asp-net_ajax_ui
novell-support-edirectory-netware
community-free_for_all
visual_studio_2005
novell-support-groupwise-6x-install-setup
data_access-xml_and_xmldatasource_control
control-cancel
novell-support-iprint
advanced_asp-net-crystal_reports
data_access-xml_web_services
microsoft-public-access
novell-community-chat
state_management
novell-support-netware-6x-abends-hangs
dotnetnuke-getting_started
novell-support-groupwise-6x-gwia
-net_languages-c
novell-support-identity-manager-engine-drivers
novell-support-groupwise-discontinued
advanced_asp-net-architecture
opensuse-org-suse-linux-support-install-configure-administration
dotnetnuke-custom_modules
novell-support-groupwise-7x-install-setup-admin
novell-support-netware-6x-storage-media
novell-support-groupwise-6x-agents
installation_and_setup
data_access-access_databases_and_accessdatasource_control
windows-hosting_open_forum
visual_web_developer_2005_express
novell-support-groupwise-6x-web-access
novell-support-netware-6x-server-backup
macromedia-dreamweaver
novell-support-netware-5x-administration-tools
novell-support-ifolder
novell-support-bordermanager-install-setup
novell-support-imanager
microsoft-public-dotnet-framework-aspnet
novell-support-netware-5x-install-upgrade
novell-support-cluster-services
novell-support-bordermanager-proxies
novell-support-newsflash
advanced_asp-net-sql_server_reporting_services
microsoft-public-dotnet-languages-csharp
web_parts_and_personalization
about_this_site-feedback_on_this_website
ibm-software-websphere-portal-server
novell-support-netware-dns-dhcp
novell-support-zenworks-desktops-4x-app-launcher
-net_languages-visual_basic_-net
advanced_asp-net-custom_server_controls
novell-support-bordermanager-vpn
novell-support-ndps-neps
microsoft-public-sqlserver-programming
novell-support-netware-webserver
community-jobs
novell-support-netware-4x
advanced_asp-net-mobile_and_handheld_devices
internet_explorer_web_controls
novell-support-zenworks-desktops-4x-install-setup
novell-support-edirectory-linux
novell-support-groupwise-7x-gwia
development_tools-web_matrix_general_discussions
microsoft-public-access-formscoding
macromedia-flash
community-announcements
portal_starter_kit
novell-support-zenworks-desktops-4x-management-agent
novell-support-zenworks-patch-management
novell-support-native-file-access
microsoft-public-access-queries
microsoft-public-access-forms
novell-support-groupwise-7x-web-access
novell-support-netware-small-business-6x
data_access-active_directory_and_ldap
novell-support-edirectory-windows
novell-support-groupwise-7x-agents
novell-support-ichain
data_access-oracle
novell-support-zenworks-desktop-management-6x-imaging
novell-support-groupwise-7x-wireless
novell-support-netware-5x-abends-hangs
advanced_asp-net-localization
novell-support-zenworks-desktop-management-7x-imaging-server-nw-win




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: 12/28/2007 4:36:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 35 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"asppick" <>
NewsGroup User
Sitemap Datasource12/28/2007 4:36:37 PM

0

Hi,

I have a sitemap file in my webproject (called Test.Sitemap), how do I assign this file to Sitemapdatasource? If I change the filename to web.sitemap, its taking automatically.. if I use other name its not using that.. How do I assign manually..
BTW, I am using Menucontrol to display the sitemap links.

Thanks

"ecbruck" <>
NewsGroup User
Re: Sitemap Datasource12/28/2007 4:49:18 PM

0

Do something like this:

WEB.CONFIG 

<siteMap defaultProvider="CoOpSiteMap">
	<providers>
		<clear/>
		<add 
			name="CoOpSiteMap" 
			securityTrimmingEnabled="true" 
			siteMapFile="~/SiteMaps/CoOp.sitemap" 
			type="System.Web.XmlSiteMapProvider" />
		<add 
			name="InformationEdgeSiteMap" 
			securityTrimmingEnabled="true" 
			siteMapFile="~/SiteMaps/InformationEdge.sitemap" 
			type="System.Web.XmlSiteMapProvider" />
	</providers>
</siteMap>

MASTER PAGE 

<div id="Navigation">
	<asp:menu id="menu" runat="server" cssclass="Menu" datasourceid="smdsMenu" dynamicpopoutimageurl="~/Images/MasterPages/DynamicPopOut.gif"
		orientation="Horizontal" staticdisplaylevels="2" staticpopoutimageurl="~/Images/MasterPages/StaticPopOut.gif"
		staticsubmenuindent="0">
		<staticmenuitemstyle cssclass="MenuStaticMenuItem" itemspacing="0px" />
		<statichoverstyle cssclass="MenuStaticHover" />
		<dynamicmenuitemstyle cssclass="MenuDynamicMenuItem" />
		<dynamichoverstyle cssclass="MenuDynamicHover" />
	</asp:menu>
	<asp:sitemapdatasource id="smdsMenu" runat="server" sitemapprovider="InformationEdgeSiteMap" />
</div>

Thanks, Ed

Microsoft MVP - ASP/ASP.NET

Please remember to 'Mark as Answer' if this post answered your question!
"noahb" <>
NewsGroup User
Re: Sitemap Datasource12/28/2007 5:24:14 PM

0

I'll just add a little context to ecbrucks response:

What he's doing is this:

  1. In the sitemapdatasource he's setting the sitemapprovider to the name of a sitemap provider that's defined in web.config
  2. In the web.config you can define multiple sitemapproviders with different settings (different names obviously, should it use security trimming? what's the file location?  what .net type should be used?)

I'm just trying to provide context because if you understand it instead of just copy & paste you'll have an easier time & know for next time :)

Have a great weekend


Noah Blumenthal
Computer Innovations
email/gtalk: noah [at] computerinnovationsny.com

Please click Mark as Answer if my reply helped you.

"Any fool can recall the flight of birds across a moonlit sky but it takes a genius to forget the face of his mother."
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













problem grasping how i could adapt my site to make use of the navigation controls

how do i turn off theme if i specified default theme in web.config?

menu - how do i remove a menuitem in menuitemdatabound event?

read classes in .css file.

menu/sitemap question

master pages and css

treeview-expand-no icon

can i display or call another .aspx page from within content tags??

gridview and button control help please!!!!

htmlhead rendering options?

applying skins on a dropdownlist

cannot use a leading .. to exit above the top directory

how to add to the contents area during runtime

menu control - sitemappath conrol and web.sitemap issue

problem in to redirect from one page to another

2 treeview problems

multiple themes..menus constatly downloading images

stop master page screen refresh on menu selection....please help...

change theme css style sheet

tree view works through vwd but not via local host or from a remote browser.

wizards driving me crazy

xmldatasource and treeview web control

asp:menu distributing widths problem.

passing values from page to masterpage

dynamically populating the menu control

expanding two (2) treeview with the same hyperlink without postback.

treeview and populateondemand - do enableclientscript, populatenodesfromclient work?

when use asp:menu with securitytrimmingenabled on, menu shows not consistently

please help me again..

3 menus with diferent styles for menuitems parents

changing css code in the master page from the content page

why am i getting a gap underneath my navigation?

treeview - cancel post back of the selected node?

how to modify web.sitemap file programmatically?

tab strip control

still using asp.net 1.1 need help!!

how to add seperators in horizontal menu control?

not really understanding the masterpage concept....

exposing server controls from master page as public property

treeview problem (2.0b)

accessibility problem with master pages

how to take the widht of a menucontrol ?

how to reference to the component, but it is in other form.

how to unload the sitemapprovider-cache?

error loading iframe into contentplaceholder!

how to remove top level menu items

how can i add left menu in master pages

sitemap roles not working

masterpage, table, iframe issues....

problem with master page.

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT