Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Creating an Admin Area

We'll need to create an area that can only be accessed by the site administrators. There we will manage the web site. We'll achieve this by creating an ‘Admin’ folder, which will contain all of our administration pages. This folder will be secured by allowing access only to members who have an ‘Admin’ role. Let's start by creating that role.

Creating the Admin Role

Open the Databases workspace in the WebMatrix IDE. In the Navigation pane, open the webpages_Roles table in the TechieTogsData.sdf database. Add a new record, inserting the value ‘Admin’ into the RoleName field (see Figure 11-1). The RoleId field is an identity field that is automatically populated by the database, so do not enter a value in this column.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial