ONLINEPROOFINGSITE.COM

efi proof paper - www.onlineproofingsite.com

Menu


Insert, Updated, Delete Record ASP, ASP.NET, ColdFusion, and PHP Opens the Insert, Update, or Delete Record dialog. These dialogs facilitate


the insertion, update, and deletion of data in the database. User Authentication ASP, ColdFusion, and PHP Use this set of objects/behaviors, also available from the Server Behaviors panel's Add (+) menu, to create user authentication services for your web application. Functionality includes the ability to log in a user, log out a user, or restrict user access to specific pages. More information on this set of objects can be found in Chapter 29, "Security and User Authentication." XSL Transformation ASP, ASP.NET, ColdFusion, and PHP Selecting this object launches the XSL Transformation dialog. From this dialog, you have the ability to provide an XSLT and XML file to dynamically produce an HTML file that is viewable within the browser. More information on this object/behavior can be found in Appendix C.   You might have noticed that roughly half the objects listed in the preceding chart have been covered in either this chapter or the previous chapter. For the most part, application objects are simply global server behaviors used by more than one server model. It's important to understand that each technology has its nuances within Dreamweaver. For the most part, ASP, ColdFusion, and PHP are similar. The radical shift occurs in ASP.NET, but even the objects exposed in that server model are similar to the objects used by the other models. In the coming sections, we'll discuss the application objects/server behaviors we haven't gone over yet to create dynamic tables, a navigation bar, and a master detail page set. Combine that with the ability to delete records, and we'll have a fully functioning administration console for employees of our fictitious Dorknozzle company. NOTE Because of restrictions on the length of this chapter, the admin page is built using the ASP server model. Feel free to follow along using the same application objects using the ASP.NET, ColdFusion, or PHP server model. However, if you're using the ASP.NET server model, you'll have to use either the DataGrid or DataList in place of dynamic tables. If you have not already done so, you may want to download the support files from www.dreamweaverunleashed.com. Completed versions of the projects using all server models can be downloaded from this website.   Dynamic Tables You can begin building an administration page for the Dorknozzle website using some of the application objects that come pre-bundled with Dreamweaverspecifically using dynamic tables. Dynamic tables, like the DataGrid feature under the ASP.NET server model, are an excellent choice when you must present large amounts of data in a database table-like presentation structure. If you've never used an admin console before, an admin console is a good way of modifying and deleting unnecessary products you might not want in the employee store, modifying or deleting employees that have left the company, and more. Generally, the administrator's page is the heart of the web application because most modifications stem from this page. You can begin building the admin page by following these steps: 1. Create a new page by selecting File, New. Select the Templates tab, pick the Dorknozzle<technology> template where <technology> represents the server model you're working with (ASP, ColdFusion, or PHP), and click Create. 2. The next step is to construct the new recordset. Because we'll try to use the Application Objects submenu as much as possible, select Insert, Application Objects, Recordset. The Recordset dialog appears. 3. Enter the value rsProducts in the Name text box. 4. Choose the connDorknozzle option from the Connection menu. 5. Select the EmployeeStore option from the Table menu.