Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 22nd, 2006, 01:02 PM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default Secure menu options

I've been developing the sample (Beer House) website as I read. I've come across a problem that I can't resolve in chapter 4. On page 150, figure 4-14 shows screenshots of the menu with no user logged in (Admin option is missing) and Marco logged in (Admin option showing). I recognize this as a role function from the web.sitemap node. As instructed on page 151 my sitemapnode for Admin has 'roles="Administrators"'. Web.config is using a separate provider for the SiteMap as instructed on page 147, and Template.master has the controls per page 30 (no changes were instructed in the subsequent pages). My database has an Admin user assigned to the Administrators role. My website menu control is always showing the Admin option when I browse it. Please assume that I have double checked and cross-referenced with the sample code many times even going as far as copying the sample database and using it. This has been puzzling me for a couple of hours.

Does Marco or anyone have a solution to my problem? The sample site works beautifully.



 
Old May 25th, 2006, 12:20 PM
Authorized User
 
Join Date: May 2006
Posts: 99
Thanks: 0
Thanked 1 Time in 1 Post
Default

After completing Chapter 4 this problem has gone away. I suspect that a web configuration file must have an authorization section that specifically authorizes a role or the role provider has nothing to do.






Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 15 Context Menu - Element Menu Items Razzy The Pug BOOK: Ivor Horton's Beginning Visual C++ 2005 2 November 9th, 2008 03:53 PM
right click menu hidden by drop-drown menu Andraw HTML Code Clinic 0 March 18th, 2005 03:28 PM
Secure calvados Pro VB.NET 2002/2003 0 January 13th, 2005 08:40 AM
List/Menu Box Options From a Text File phungleon Classic ASP Professional 4 April 23rd, 2004 11:49 AM
accessing sub menu options mookashi Pro VB 6 0 March 2nd, 2004 07:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.