Web site traffic - If you tested a query previously, the results

If you tested a query previously, the results that show up on the Test Query page will be the ones left over from that previous text. To see what your current query produces, you must click the Test Query button. Clicking Finish closes the wizard and brings you back to the Design view of the page. The data-bound control will probably look completely different (though still random and ugly, because it s only a placeholder for data to be provided later). Data controls in Design view In Design view, data controls don t look like much. The control shows column names from the underlying table or view. For example, Figure 12-16 shows a DataList control after binding it to the Items table (without the ItemId column). Instead of showing actual data from the table, the control just shows placeholders like abc for text and 0.1 for numbers. To see what the data-bound control will display to people accessing your Web site normally, view the page in a Web browser. The placeholder text is replaced with actual text from the table, as shown in Figure 12-17. (There s more text than can be seen without scrolling. But trust me, the page shows all records from the Items table.) Keep in mind that Figure 12-17 is only an example. There are many data controls to choose from, and an infinite number of ways you can display data on a page. But the general procedure of going through the Data Configuration Wizard is the same, regardless of what data control you use or how you format your data. Figure 12-16: A DataList control after binding to columns from the Items table. Chapter 12: Using Data in Web Pages 273
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply