CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/10/2007 11:07:05 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 36 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
slasi.net
Asp.Net User
How to: define Multiple Site Maps in web application by roles2/10/2007 11:07:05 PM

0/0

		
 Hi,

 i have folloed the article http://msdn2.microsoft.com/en-us/library/aa479320.aspx and http://msdn2.microsoft.com/en-us/library/ms178426.aspx to define two site maps in my web site.

it works fine when i do it on web sites with visual studio.

but, if i open web application project and i try to do the same things i manage to have two deferent site maps with my project in one master page.

the problem is that i can see all the links from the site map and it is not sorted by the rols.

in the master page i have: 

 

<asp:Menu ID="SideMenu" runat="server"

DataSourceID="SideMenuSiteMapDataSource"

StaticDisplayLevels="2"

DynamicHorizontalOffset="2"

Font-Names="Verdana"

StaticSubMenuIndent="10px"

Width="65px">

<StaticMenuStyle BorderStyle="None" BackColor="#FFE56C" />

<StaticMenuItemStyle Font-Names="Tahoma" ForeColor="Black" BorderColor="#FFE56C"

BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt" />

<DynamicMenuStyle BorderStyle="Outset" BorderWidth="1px" BorderColor="Gray" BackColor="#FFE56C" />

<DynamicMenuItemStyle Font-Names="Tahoma" Font-Size="8pt" BorderStyle="Solid" BorderWidth="1px"

BorderColor="#FFE56C" />

<StaticHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicItemTemplate>

<asp:Label ID="Label2" runat="server" Font-Names="Tahoma" ForeColor="Black" Text='<%# Eval( "Text" ) %>'>

</asp:Label>

&nbsp;&nbsp;&nbsp;&nbsp;

</DynamicItemTemplate>

</asp:Menu>

<asp:SiteMapDataSource ID="SideMenuSiteMapDataSource" runat="server" />

 

 

i have tryed to add with in the SiteMapDataSource the line: SiteMapProvider="SecuredSiteMapProvider"

but with no success.

 

in the web config i have:

<

roleManager enabled="true"/>

<

authentication mode="Forms"/>

<

siteMap enabled="true" defaultProvider="SecuredSiteMapProvider">

<

providers>

<

add name="SecuredSiteMapProvider"

type="System.Web.XmlSiteMapProvider, system.web,version=2.0.3600.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

"

siteMapFile="~/SideMenu.sitemap" securityTrimmingEnabled="true"/>

<

add name="TopMenuSiteMap" type="System.Web.XmlSiteMapProvider"

siteMapFile="~/TopMenu.sitemap"/>

</

providers>

</

siteMap>

 

 

site map:

 

<

siteMapNode url="~/web/User/General.aspx" title="" description="" roles="User" >

<siteMapNode url="~/web/User/Account.aspx" title=" " description=" " roles="User" />

<siteMapNode url="~/web/User/ChangePassword.aspx" title=" " description="" roles="User" />

</siteMapNode>

<

siteMapNode url="~/web/Admin/Customers.aspx" title=" " description=" " administratorsRole="true" roles="Administrator" >

<

siteMapNode url="~/web/Admin/CreateUser.aspx" title=" " description="" administratorsRole="true" roles="Administrator" />

</
siteMapNode>

 

what do i need to add or to change so in web applications the dot net framework will take

into considuration the roles with in the site map ?

 

thanks alot for the help

 

ori

Zhao Ji Ma - MS
Asp.Net User
Re: How to: define Multiple Site Maps in web application by roles2/15/2007 8:12:39 AM

0/0

slasi.net:
the problem is that i can see all the links from the site map and it is not sorted by the rols.

in the master page i have: 

 

<asp:Menu ID="SideMenu" runat="server"

DataSourceID="SideMenuSiteMapDataSource"

StaticDisplayLevels="2"

DynamicHorizontalOffset="2"

Font-Names="Verdana"

StaticSubMenuIndent="10px"

Width="65px">

<StaticMenuStyle BorderStyle="None" BackColor="#FFE56C" />

<StaticMenuItemStyle Font-Names="Tahoma" ForeColor="Black" BorderColor="#FFE56C"

BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt" />

<DynamicMenuStyle BorderStyle="Outset" BorderWidth="1px" BorderColor="Gray" BackColor="#FFE56C" />

<DynamicMenuItemStyle Font-Names="Tahoma" Font-Size="8pt" BorderStyle="Solid" BorderWidth="1px"

BorderColor="#FFE56C" />

<StaticHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicItemTemplate>

<asp:Label ID="Label2" runat="server" Font-Names="Tahoma" ForeColor="Black" Text='<%# Eval( "Text" ) %>'>

</asp:Label>

&nbsp;&nbsp;&nbsp;&nbsp;

</DynamicItemTemplate>

</asp:Menu>

<asp:SiteMapDataSource ID="SideMenuSiteMapDataSource" runat="server" />

 

 

i have tryed to add with in the SiteMapDataSource the line: SiteMapProvider="SecuredSiteMapProvider"

but with no success.

 

in the web config i have:

<

roleManager enabled="true"/>

<

authentication mode="Forms"/>

<

siteMap enabled="true" defaultProvider="SecuredSiteMapProvider">

<

providers>

<

add name="SecuredSiteMapProvider"

type="System.Web.XmlSiteMapProvider, system.web,version=2.0.3600.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

"

siteMapFile="~/SideMenu.sitemap" securityTrimmingEnabled="true"/>

<

add name="TopMenuSiteMap" type="System.Web.XmlSiteMapProvider"

siteMapFile="~/TopMenu.sitemap"/>

</

providers>

</

siteMap>

 

 

site map:

 

<

siteMapNode url="~/web/User/General.aspx" title="" description="" roles="User" >

<siteMapNode url="~/web/User/Account.aspx" title=" " description=" " roles="User" />

<siteMapNode url="~/web/User/ChangePassword.aspx" title=" " description="" roles="User" />

</siteMapNode>

<

siteMapNode url="~/web/Admin/Customers.aspx" title=" " description=" " administratorsRole="true" roles="Administrator" >

<

siteMapNode url="~/web/Admin/CreateUser.aspx" title=" " description="" administratorsRole="true" roles="Administrator" />

</
siteMapNode>

 

 

Hi,

 

 

 

You have mention two sitemaps in your web application, but only one is pasted here, is it TopMenu.sitemap or SideMenu.sitemap?


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. ?
Zhao Ji Ma - MS
Asp.Net User
Re: How to: define Multiple Site Maps in web application by roles2/15/2007 8:12:46 AM

0/0

slasi.net:
the problem is that i can see all the links from the site map and it is not sorted by the rols.

in the master page i have: 

 

<asp:Menu ID="SideMenu" runat="server"

DataSourceID="SideMenuSiteMapDataSource"

StaticDisplayLevels="2"

DynamicHorizontalOffset="2"

Font-Names="Verdana"

StaticSubMenuIndent="10px"

Width="65px">

<StaticMenuStyle BorderStyle="None" BackColor="#FFE56C" />

<StaticMenuItemStyle Font-Names="Tahoma" ForeColor="Black" BorderColor="#FFE56C"

BorderStyle="Solid" BorderWidth="1px" Font-Size="8pt" />

<DynamicMenuStyle BorderStyle="Outset" BorderWidth="1px" BorderColor="Gray" BackColor="#FFE56C" />

<DynamicMenuItemStyle Font-Names="Tahoma" Font-Size="8pt" BorderStyle="Solid" BorderWidth="1px"

BorderColor="#FFE56C" />

<StaticHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicHoverStyle BackColor="Ivory" BorderStyle="Solid" BorderWidth="1px" BorderColor="#FFE56C" />

<DynamicItemTemplate>

<asp:Label ID="Label2" runat="server" Font-Names="Tahoma" ForeColor="Black" Text='<%# Eval( "Text" ) %>'>

</asp:Label>

&nbsp;&nbsp;&nbsp;&nbsp;

</DynamicItemTemplate>

</asp:Menu>

<asp:SiteMapDataSource ID="SideMenuSiteMapDataSource" runat="server" />

 

 

i have tryed to add with in the SiteMapDataSource the line: SiteMapProvider="SecuredSiteMapProvider"

but with no success.

 

in the web config i have:

<

roleManager enabled="true"/>

<

authentication mode="Forms"/>

<

siteMap enabled="true" defaultProvider="SecuredSiteMapProvider">

<

providers>

<

add name="SecuredSiteMapProvider"

type="System.Web.XmlSiteMapProvider, system.web,version=2.0.3600.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

"

siteMapFile="~/SideMenu.sitemap" securityTrimmingEnabled="true"/>

<

add name="TopMenuSiteMap" type="System.Web.XmlSiteMapProvider"

siteMapFile="~/TopMenu.sitemap"/>

</

providers>

</

siteMap>

 

 

site map:

 

<

siteMapNode url="~/web/User/General.aspx" title="" description="" roles="User" >

<siteMapNode url="~/web/User/Account.aspx" title=" " description=" " roles="User" />

<siteMapNode url="~/web/User/ChangePassword.aspx" title=" " description="" roles="User" />

</siteMapNode>

<

siteMapNode url="~/web/Admin/Customers.aspx" title=" " description=" " administratorsRole="true" roles="Administrator" >

<

siteMapNode url="~/web/Admin/CreateUser.aspx" title=" " description="" administratorsRole="true" roles="Administrator" />

</
siteMapNode>

 

 

Hi,

 

 

 

You have mention two sitemaps in your web application, but only one is pasted here, is it TopMenu.sitemap or SideMenu.sitemap?


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. ?
slasi.net
Asp.Net User
Re: How to: define Multiple Site Maps in web application by roles2/15/2007 9:19:02 AM

0/0

thank you for your replay

 yse i forgot to paste the second site map,

i have managed to slove the problem,

i have changed the location of the files with in the the directory and forgot to update it in the site map.

if the files doesnt exist in the correct pace then probebly we cannot see the links in the menu even though in the site map it exist.

you can use this post as example how to define two sitemaps with in master page.

 

thanks

 

ori

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional DotNetNuke 4: Open Source Web Application Framework for ASP.NET 2.0 Authors: Shaun Walker, Joe Brinkman, Bruce Hopkins, Scott McCulloch, Patrick J. Santry, Chris Paterra, Scott Willhite, Dan Caron, Pages: 517, Published: 2006
Professional CSS: Cascading Style Sheets for Web Design Authors: Christopher Schmitt, Mark Trammell, Ethan Marcotte, Dunstan Orchard, Todd Dominey, Pages: 434, Published: 2005
Groupware and the World Wide Web Authors: Richard Bentley, Pages: 152, Published: 1997
Graphic Artists Guild Handbook: Pricing & Ethical Guidelines Authors: Graphic Artists Guild Staff, Graphic Artists Guild U.S., Graphic Artists Guild (U.S.), Pages: 332, Published: 2003
Becoming a Digital Designer: A Guide to Careers in Web, Video, Broadcast, Game and Animation Design Authors: Steven Heller, David Womack, Pages: 336, Published: 2008
Real Web Project Management: Case Studies and Best Practices from the Trenches Authors: Thomas J. Shelford, Gregory A. Remillard, Pages: 299, Published: 2002
Professional IBM WebSphere 5.0 Application Server Authors: Tim Francis, Rob High, Eric Herness, Jim Knutson, Kim Rochat, Chris Vignola, Pages: 792, Published: 2002
Advances in Web Intelligence: Third International Atlantic Web Intelligence Conference, AWIC 2005, Lodz, Poland, June 6-9, 2005 : Proceedings Authors: Piotr S. Szczepaniak, Janusz Kacprzyk, Adam Niewiadomski, Pages: 513, Published: 2005
Pro Visual Studio 2005 Team System Application Development: Application Design Authors: Steve Shrimpton, Pages: 768, Published: 2006

Web:
ASP.NET Site-Map Security Trimming NET role management provides a way to restrict access to Web files based on security ... You can use multiple site maps together to define the navigation ...
ASP.NET Site Maps For more information, see How to: Configure Multiple Site Maps and ... In a site map, you can reference URLs that are outside of your Web application. ...
Configuring Security in Web Applications You define roles with the security-role Element in the Web Application deployment descriptor. You then map these roles to principals in your realm with the ...
Working with ASP.NET site maps - Program - .Net - Builder AU NET allows you to define an application's structure via the Site Map Web server ... However, like web.config files, a site may use multiple site map files. ...
Configuring Security in Web Applications Multiple Web Applications, Cookies, and Authentication .... Define roles with the security-role. Then map these roles to principals in your realm with the ...
Corporate Website design solution provider, Content Management ... Our CIS Framework Web Application Management System is a flexible and scalable ... Legal Notice Privacy Policy Site Map Contact Us Corporate web site ...
The Sitemap and have the map elements for that site/application. .... Langham and Ziegeler's Cocoon: Building XML Applications available at the New Riders web site. ...
Mashup (web application hybrid) - Wikipedia, the free encyclopedia Examples of consumer mashups include the many Google Maps applications, ... Philosophy/Approach, Approaches aggregation by splitting role of web server into ...
Online sitebuilder by NS Web Solutions Supports unlimited level of Site Map. Authors can flexibly position web documents at ... Users can have more than one roles, and can also flexibly act as ...
Advanced Web Application Features (GlassFish v3 Application Server ... Multiple virtual servers can serve content using the same or different host names, ..... Then define a security role mapping in your sun-web.xml file: ...

Videos:
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
EarningsCast - Google Q2 2006 Earnings Call in Full. EarningsCast creates Podcasts of Company Earnings Calls. You can see the full complement at http://www.earningscast.com. This is the Q2 2006 Google e...
django: Web Development for Perfectionists with Deadlines Google TechTalks April 26, 2006 Jacob Kaplan-Moss ABSTRACT Django is one of the premier web frameworks for Python, and is often compared to Ruby-on...




Search This Site:










form on master page?

sitemappath and custom providers

asp.net2.0 menu controls for content pages

dynamic content pages for master page

master page, response.redirect and viewstate

treeview with dropdown nodes

sitemap not working

master pages and images

open a treeview at the right place

can you force asp.net to use absolute urls instead of relative ones for theme/css sources?

how would you add two contentplaceholder with same name?

is it a good idea for your sign on page to have a master template(thinking security)

treeview persist state

treeview for my cms

share master pages between projects and have design time rendering

sharepoint help

nikhil's updatehistory and masterpages

using javascript calendar in content page

apply theme in design view in vs2005/ide

setting masterpage client onload from contentpage

treeview problem

javascript and master page problem

how to use tab control?

untitled page using master pages

holy grail - can main content center be made scrollable?

moveable column divider

.net 2.0 menu questions

why not using contentplaceholder in existing window?

tree view question

nested contentplaceholder - bad practice?

  Privacy | Contact Us
All Times Are GMT