ONLINEPROOFINGSITE.COM

systems proof of - www.onlineproofingsite.com

Menu


4. We need to create a new page that represents the redirection page. To do this, select File, New; in the New Document dialog, switch to


the Template tab and highlight the template named Template for the DorknozzleASPX site and click Create. 5. In the new page, replace the text Content Goes Here in the Content editable region with the text Thank you for registering as a new user. 6. Save your page as x_newusercreated.aspx. That's it! This time, when a new user registers on the site, they are redirected to this thank-you page. Creating the My Account Page Using ASP.NET Now that you've added the functionality for employees to insert their information into the database, you'll want to add more functionality to allow them to modify their employee data. Suppose that an employee moved to a new location and you shipped a product to their old address. You can imagine the confusion. Fortunately, Dreamweaver provides a behavior in the Update Record server behavior that enables you to develop a page for user administrative purposes. Using dynamic web controls in conjunction with the Update Record server behavior, employees can see the information that resides in the database in editable web controls. After employees edit their information, they need only submit the form to update the information in the database. Creating the My Account Form Because all the employee information will be placed into form objects, the My Account form will be constructed much the same way that the New User Registration form was created. To create the My Account form, follow these steps: 1. Begin creating the My Account form by creating a new page from a template. From the File menu, select New, navigate to the Templates tab, and select the template named Template from the DorknozzleASPX site. 2. Remove the text from the Content editable region. With your cursor still in the region, insert a new form by selecting Insert, Form, Form. Don't forget to switch to Code view and enter the runat="server" attribute and value for the form (as you did with the New User Registration form). 3. Let's add a table similar to the one we created in the New User Registration form. Select Table from the Insert menu. The Insert Table dialog appears. In the dialog, create a table that has 14 rows, 2 columns, a width of 450 pixels, and 0 border, cell padding, and cell spacing. Click OK to create the table. TIP To make it easier on yourself, you could just open the register.aspx page, copy the existing table (along with the controls), switch back to the My Account page, and paste the table into the new form. 4. Add captions for all the appropriate personal information, including billing/shipping information, and so on to the table. You can merge cells along the way to create the header. The result is shown in Figure 26.27. Figure 26.27. Add all appropriate content to the new table. [View full size image] 5. You are now ready to begin adding all the form objects for the My Account form. The following chart shows the fields, the appropriate web controls to be inserted, and the unique IDs to be given to each of the form objects. Field Name Web Control ID EmployeeID TextBox employeeid Name TextBox name Username TextBox username Password TextBox password Email TextBox email Phone TextBox phonenumber Headshot TextBox headshotloc