• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. All Fueled Up: The Best of Se... > Yes, We Have No Records Today

Yes, We Have No Records Today

A results page for the standard search application is generally set up to handle any number of items—some even use recordset navigation so that users can page through the results. However, what if there are no matches to the search criteria? Do you really want a “Now showing 0 of 0 records” message on the screen? Of course you don’t! You want something kind, but firm, like, “No matches. Try again. Loser.” With the use of two standard server behaviors, you can hide unnecessary elements and simultaneously show your message. To hide your recordset navigation (and anything else unwanted), select the undesired elements and apply the Show If Recordset Not Empty server behavior. This shows the region only if some results are found and otherwise it’s hidden. Next, add your “No Records Found” message (or a Flash sound file that gives’em the raspberry), select it, and then apply Show If Recordset Is Empty. Presto-chango—two completely different looks to handle any search outcome.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint