To show each picture as an actual picture (Hp web site)
To show each picture as an actual picture rather than the PhotoURL value, you need to get an Image control from the Standard group of tools into the ItemTemplate. Then bind the ImageURL property of that control to the PhotoURL field. You can start by deleting what s already in the template. Here are the steps: 1. Delete all the text and both Label controls from the ItemTemplate, so that the template is just an empty box. 2. In the Toolbox, click the + sign next to Standard to show the Standard ASP.NET controls. 3. Drag an Image control from the Toolbox into the ItemTemplate. The control appears as a small box containing a red X (it s just a placeholder for each picture that will be shown in the Web browser). 4. Click the Image control s Common Tasks button and choose Edit Data Bindings. 5. In the dialog box that opens, click ImageURL in the left column under Bindable Properties. 6. In the right column, choose Field Binding. 7. From the Bound To drop-down list, select the name of the field that contains the link to the image. In the example of the Photos table, that s the PhotoURL field, as shown in Figure 12-50. 8. Click OK. Viewing the page in a Web browser at this point will display each picture rather than just the URL to the picture. If that s all you want, then you re done. But chances are you ll want something fancier than just a bunch of pictures shown down the page. So let s look at some things you can do to fancy things up. Figure 12-49: The ItemTemplate for a DataList control. 304 Part III: Personalization and Databases
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.