Sunday, May 1, 2011

Week 14 : 8 April 2011 (Reflection)...

Activity 1: Integrating Security into an Application

1. Create a form as following:

2.Create a table in a database file as following:


3. Type. a few username and password for testing.


4. Close your database file and view back your dreamweaver file.


5. Save the file. Make sure your connection is working.


6. Click Server Behavioes > User Authentication > Log In User


7. Select the correct form and connection.

8. Make sure you select the correct table and also the correct fields for username and password.


9. Select also the html or ASP file for If Login Succeeds and If Login Fails.


10. For Restrict Access Based, just select Username and Password. 


11. Click OK. Test your application.


12. Try to create the Logout Page.


Activity 2: Integrating Security into an Application with Registration Page


1. Create a table in a database to hold all the data from the registration page. Don't forget to set a Premiary Key to the id variable or username variable.


2. The registration page should ask information such as Name, Username, Password.

3. Text Field for password has to set up as password.


4. Use Insert Record bahavior.


5. No need to view back the registration information. Therefore, don't use RecordSet bahavior.


6. Create another ASP file for login page.


7. Use Login Behavior and please use a same table (that holds registration information) for the username and password.

Activity 3: Go To Related Page and Go To Detail Page


1. Create a page to view back the data of all the registered users.


2. Use RecirdSet and Repeat Region.


3. Highlight one user and Go To Detail Page or Go To Related Page Behavior to link the asp file to the file that view back the detail information of the user.

4. Prepare the detailed file by viewing back the detail information of the user. Create another RecordSet and filter it based on it. Please use this new RecordSet.

No comments:

Post a Comment