as blank. You can see how counterintuitive this would be to the user, not to mention that it isn't very user friendly. Using the Show Region server behavior set, you can present users with an alternative text message, alerting them of the failed search result and allowing them to link back to the search page to try their search again. To insert the alternative text into your search result page, follow these steps: 1. Open search_results.asp, search_results.aspx, search_results.cfm, or search_results.php (depending the server model you're using) and place your cursor just after the last dynamic element that exists on the page. Add a line break. 2. Insert the text Sorry, no results match that search and create a link for the text TRy Again. Make the Try Again text link back to the search.asp, search.aspx, search.cfm, or search.php page, depending on the server model you're using. 3. Highlight the Sorry text and the Try Again link and select the Show Region If Recordset Is Empty (the option is called Show If DataSet Is Empty in ASP.NET) server behavior from the Show Region submenu in the Server Behaviors panel. The Show Region If Recordset Is Empty (Show If DataSet Is Empty in ASP.NET) dialog appears. 4. Choose the rsSearch/dsSearch option from the Recordset/DataSet menu and click OK. The Show If invisible element wraps the text and the link. Save your work and test the result in the browser by pressing F12. In the search page, type something you know the search will not produce a result for, such as Dorknozzle Paperclip, and click Search. Your Sorry message will appear along with the Try Again link that allows you to link back to the search page, as shown in Figure 27.17. Figure 27.17. If the recordset/DataSet comes up empty, you are presented with the custom message along with a link that allows you to link back to the search page. [View full size image] Globalizing the Search Functionality Now that most of the search functionality has been added to the Dorknozzle site, you're ready to globalize it. What exactly does globalizing mean? Globalization is the term given to items or functionality that can be accessed from anywhere at any time. Currently, the search functionality can be accessed only from the search.asp, search.aspx, search.cfm, or search.php page. What you want is for that search functionality to be accessible from every page; that way, when a user has an immediate need to search for a particular item, it can be done no matter what page the user is on. Accomplishing this task is as simple as emulating the form objects you inserted on the search page in the main template located in the Templates folder of the defined site. Modifying the template provides access to the search functionality on every page in the Dorknozzle site. To globalize the search functionality, follow these steps: 1. Open the template file that currently resides in the Templates folder for your defined site. 2. Add two new rows to the navigation table located on the left side of the page. You can do this by placing your cursor in the Admin cell and pressing the Tab key four times. 3. Highlight the two cells in the second row and merge them. You can do this by selecting the small Merge Cells icon located in the bottom-left corner of the Properties Inspector. CAUTION If you're working in the ASP.NET server model, do not proceed with the following steps. Instead, you should add a new Search link that points to the search.aspx page. The reason for this caveat is simple: ASP.NET supports only one form per