Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 October 13th, 2009, 12:26 AM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Membership and Role Providers

Hi Vince,

Thanks for a great book which has given me plenty of ideas for a framework I'm designing for our company.

I have a question regarding the role based security and menu item implementation.

From a design point of view, can you give me an insight as to why a bespoke design was used instead of extending the membership and role providers that come with asp.net?

I'm thinking that it has something to do with being able to restrict user actions down to the capability grain? At the moment I'm leaning towards extending the built in providers and was wondering if you'd experienced any gotchas if/when using them for an enterprise framework implementation?

Cheers.
 
Old October 25th, 2009, 09:32 PM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Membership and Role Providers

Any chance of a reply on this one?
 
Old October 26th, 2009, 12:47 PM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

thinster, I cant answer on behalf of Vince, he hasnt been around lately. Anyway, I was thinking of creating some custom interfaces to Menu editing from a design view, sort of how the Code Generator works.

The one gotcha that I can tell you about from experience is that it gets really cumbersome when using the design used in this framework. You manually edit the db then you have to clean the dll's and rebuild for them to take effect. Make sit hard to keep your libraries in sync.

Best of luck.
 
Old October 26th, 2009, 12:59 PM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

thinster,

I cant answer on behalf of Vince, he hasnt been around lately. Anyway, I was thinking of creating some custom interfaces to Menu editing from a design view, sort of how the Code Generator works.

The one gotcha that I can tell you about from experience is that it gets really cumbersome when using the design used in this framework. You manually edit the db then you have to clean the dll's and rebuild for them to take effect. Make sit hard to keep your libraries in sync.

Best of luck.
 
Old October 26th, 2009, 01:00 PM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

thinster,

I cant answer on behalf of Vince, he hasnt been around lately. Anyway, I was thinking of creating some custom interfaces to Menu editing from a design view, sort of how the Code Generator works.

The one gotcha that I can tell you about from experience is that it gets really cumbersome when using the design used in this framework. You manually edit the db then you have to clean the dll's and rebuild for them to take effect. Makes it hard to keep your libraries in sync.

Best of luck.
 
Old October 26th, 2009, 01:06 PM
Authorized User
 
Join Date: Mar 2009
Posts: 79
Thanks: 4
Thanked 4 Times in 4 Posts
Default

thinster,

I cant answer on behalf of Vince, he hasnt been around lately. Anyway, I was thinking of creating some custom interfaces to Menu editing from a design view, sort of how the Code Generator works.

The one gotcha that I can tell you about from experience is that it gets really cumbersome when using the design used in this framework. You manually edit the db then you have to clean the dll's and rebuild for them to take effect. Makes it hard to keep your libraries in sync.

Best of luck.
 
Old October 26th, 2009, 06:03 PM
Authorized User
 
Join Date: Mar 2008
Posts: 62
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to kalel_4444
Default

Thinster,

The asp.net out-of-the-box role can handle the job just fine, but it can quickly be a problem when you need to change a users role and/or level of permission of a page.

Z, I agree, manually adding/maintaining menu items and capabilities directly via sql..!!!! YA RIGHT..!!! This got old real quick..!!!
I changed the MenuItems and Capability in the BLL to inherit from the BaseEO and allow Add, Edit, Delete. In doing this you'll want to:
  • Add Validation for deleting
  • Check for IsDuplicate
  • Create a button on the Grid page to 'Reload' the Load methods in Globals. This will update everything instantly.
You can then set a capability for the grid and edit page for this and only allow 'Developer' role or whomever access to these pages.

My only gripe that was left out was a BreadCrumbs control for the Menu Items. That would have been a nice final touch. This is something I had to add to my TODO list and haven't gotten to it yet.

Good luck,
Ronnie
 
Old October 26th, 2009, 06:23 PM
Registered User
 
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply guys - some interesting points. I did wonder why a read only BLL was implemented as it did seem like something which would need administration by developers/admins etc.

I'll definately go with Ronnie's suggestions as well - The breadcrumbs would be a nice touch - I'll be sure to post if I get round to that any time soon,

Thanks again





Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership and Profile Providers - Mixing the Two robzyc ASP.NET 2.0 Basics 0 April 29th, 2008 03:49 AM
Membership and Role Providers with Access Database kanzeon4 ASP.NET 2.0 Professional 1 April 2nd, 2008 04:09 PM
cache membership/role values Maxxim ASP.NET 2.0 Professional 0 October 7th, 2007 05:09 AM
Membership and Role Management frosty ASP.NET 2.0 Basics 1 July 18th, 2006 12:46 AM
Need Help With Membership & Role Management Carl Grainger ASP.NET 2.0 Basics 2 January 13th, 2006 12:50 AM





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