Home > Products > Dreamweaver > Support > Working with Studio MX
Dreamweaver Icon Macromedia Dreamweaver Support Center - Working with Studio MX
Show a "no records found" message

Hiding page elements when no records are found may still confuse some users. When the server returns a page that is completely blank, the user may wonder if there was an error or if the search application is running at all. To alert your user that the application is working, you can apply a Show Region server behavior that will display a "no records found" message.

1 With the results.cfm page open in the Dreamweaver Document window, place the insertion point inside the empty table that is above the table containing the sentence, "Here is the information you requested."
2 In the Property inspector (Window > Properties), do the following:
Make sure the text color is set to white (#FFFFFF)
Select a font combination from the Font pop-up menu. For this tutorial, we selected Georgia, Times New Roman, Times, serif.
Select a font size from the Font size pop-up menu. For this tutorial, we selected 2.
Click the Bold button
Click the Left Align button
3 Type the sentence, "We're sorry, but there is no Wildlife Project branch in your area."
4 With the insertion point still inside the table, select the table by clicking the <table> tag in the tag selector.

5 In the Server Behaviors panel (Window > Server Behaviors), click the plus (+) button and select Show Region > Show If Recordset Is Empty.
The Show If Recordset Is Empty Dialog box appears.
6 Select rs_wildlife from the Recordset pop-up menu and click OK.
A thin, tabbed gray outline appears around the show region.

7 Save the results.cfm file and post it to your web server by clicking the File Management button and selecting Put.
8 Test the page in a browser. When you conduct a search that returns no matching records, the results page now alerts the user with the message you created.

You have now concluded all of the tutorials in The Wildlife Project tutorial series. In this series you learned everything you need to know for building a website, from planning your site and sketching a navigation structure, to designing site assets and an application interface. You can now use the techniques you learned to expand The Wildlife Project sample site, or create a site of your own.

Submit feedback about this tutorial.

To Table of Contents Back to Previous document