CS 233S: Web Application Development II	Name:	
Assignment #8 Site Membership and Role Providers	Date Due:	

In this eighth assignment, you will configure your web applications to take advantage of the membership and role service providers built into the .NET framework.
Part A: Text Reading	50 points
1.	Read Chapter 16 in the textbook. Read all of the pages – you are responsible for the knowledge in each section, even if you are not required to complete the coding. 
2.	Follow the VB or C# directions for:
•	Page 735, Listing 16-1: modify the web.config file as shown
•	Page 736, Listing 16-2: modify web.config to specify the default login page info shown.
•	Page 738, Listing 16-3: create a new file named chap16page1.aspx as shown. Note that in order to view the database as described on the following pages you may need to close and then reopen your project.
•	Page 740-41, Listing 16-4: modify the web.config file as shown. Be sure to create a connection string with the correct name in the Configuation section of the web.config file. This might look like:
<configuration>
  <connectionStrings>
    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
  </connectionStrings>
•	Page 741, Listing 16-5: modify chap16page1.aspx; add the ContinueButtonClick procedure either to a server-executed script block within the .aspx file or to the code behind the page. Note that you must add either an event attribute to the asp:CreateUserWizard control or add the “Handles CreateUserWizard1.ContinueButtonClick” specifier to the first line of the procedure.
•	Page 742, Listing 16-7: modify the web.config file; add a profile section to define profile properties.
•	Page 743. Listing 16-8: modify chap16page1.aspx; update the second TreeView control to display checkboxes and add the script to output the selected value(s) to the page.
•	Page 747, Listing 16-9: create a new file named chap16page2.aspx.
•	Page 748, Listing 16-10: modify the chap16page2.aspx file; add the code needed to provide more user friendly error messages to the Try-Catch structure. This does mean you will replace code from 16-9.
•	Page 752. Listing 16-12: modify the web.config file; add the code to deny anonymous user access.
•	Page 753, Listing 16-13: create a new file named Login.aspx as shown.
•	Page 754, Listing 16-14: modify the Login.aspx file; use the control’s Smart Tag to apply the Auto Format of your choice in the VWDE design view.
•	Page 760, Listing 16-19: modify the default.aspx file; add the login controls shown.
•	Page 762, Listing 16-20: modify the default.aspx file; add the label and code to display the number of users online
•	Page 764, Listing 16-21: create a new chap16page3.aspx file to allow users to change their passwords.
•	Page 769, Listing 16-26: modify the Login.aspx file; add the LoginView control shown.
3.	Email or print the code view (including the code behind the page as needed) from:
•	
•	Chap16page1.aspx
•	Chap16page2.aspx
•	Chap16page3.aspx
•	Login.aspx
•	Default.aspx
•	Web.config

Part B: On Your Own	50 points
1.	Create a members-only feature for your project site. It should exhibit at least the following: 
a.	Use of the built-in ASP.NET membership provider
b.	Use of an asp:login control to authenticate users
c.	Use of an asp:CreateUserWizard control to allow users to sign up for an account
d.	Use of either the DeleteUser or UpdateUser method (or both) of the Membership class to programmatically manage stored user info
e.	A logout feature (which can be created either programmatically or through an ASP.NET web server control)
f.	Enough content, text instructions, and connecting links to make it clear that user’s need to sign in to view content, provide an option to create an account for new users, and make it easy to either update or delete a user account.
2.	Zip your project folder and email.