Sunday, May 1, 2011

Week 15 : 15 April 2011 (Reflection)...

Using Delete & Update Behaviors
( appropriate for administrator page where the admin can delete certain users or updating information on users)

Before using Delete and Update behavior, we have to use the RecordSet behavior first.

Steps:


1. Create a page to view back the data of all the registered users. Insert form first OK.


2. Add a Delete and Updating buttons / texts in the page.


3. Use RecordSet and Repeat Region.


4. Create a Delete Page. In the Delete Page, view back the information of the user based on the RecordSet. Add a Delete button.

5. Use a Delete Behavior.
  > Name of the form 
  > Name of the RecordSet


6. Highlight the Delete button / text and use Go To Detail Page or Go To Related Page behavior to link the asp file to the Delete Page to view back the detail information of the user.


For update behavior, continue these steps:


1. Create an Update Page. Insert form first OK.


2. Use RecordSet and Repeat Region.


3. In the Page, insert Text Field for each field.


4. View back the information of the user based on the RecordSet by arranging the behavior from Bindings into the related field:


5. Add an update button.


6. Use update behavior.


7. Highlight the Update button / text and use Go To Detail Page or Go To Related Page behavior to link the asp file to the update Page to view back the detail information of the user.

No comments:

Post a Comment