Programming instructions
92 Lesson 3 Creating a Main Application Page
2 To format the currency and date fields on the Trips Search Results page, open the 
tripsearchresult.cfm in your editor and make the same changes for 
departureDate, 
returnDate, and price as in step 1.
3 To alternate the background color of the rows of the search results table, delete the 
table row tag 
<tr> that immediately follows the <cfoutput 
query="TripResult">,
 and replace it with the following code:
<cfif CurrentRow Mod 2>
<cfset BackColor="White">
<cfelse>
<cfset BackColor="Yellow">
</cfif>
<TR bgcolor= #BackColor#>
4 Save the files then open your browser and navigate to the tripsearch.cfm page in the 
my_app directory. Again, enter Begins With and C in the location search criteria, and 
click 
Search. 
The Trip Search Results page appears:
#price# #dollarformat(price)#
#baseCost# #dollarformat(baseCost)#
Existing code Change to










