Skip to Content
ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution
book

ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution

by Vince Varallo
February 2009
Intermediate to advanced
502 pages
12h 53m
English
Wrox
Content preview from ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution

6.4. Summary

Recall from Chapter 1 that when Mary was explaining her requirements, she asked for some type of security. Although she could only vaguely describe what she wanted and didn't understand security terminology, by implementing the pattern designed in this chapter you have now successfully met Mary's requirements for role-based security.

The key points to remember when adding a new page and applying security to it are as follows:

  • Add one or more records to the ENTMenuItem table. Usually, one record is added to the table for the two pages for data entry screens. The menu item navigates to the list page and from there the user can get to the data entry page.

  • Add one or more records to the ENTCapability table. Usually, one record is used for both the list page and the data entry page, but in some situations more than one capability will be associated with a page. Remember to add the id of the menu item on the capability record.

  • Set the correct AccessType on the ENTCapability record so it appears correctly on the Role screen. An enumeration maps to the AccessType field and can have three values: ReadOnlyEdit, ReadOnly, or Edit. You can add more if you want to customize the security for your own needs.

  • When creating a page, you must override the CapabilityNames method and return an array of strings that map to the capabilities for this page. Most of the time this method returns only one capability name.

  • If you have nonstandard input controls on a form or you need to implement ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
Professional ASP.NET 3.5 AJAX

Professional ASP.NET 3.5 AJAX

Dave Reed, Bill Evjen, Dan Wahlin, Matt Gibbs

Publisher Resources

ISBN: 9780470396865Purchase book