<% intPhotoNum = Request.QueryString("PhotoNum") If IsNumeric(intPhotoNum) = 0 Then Response.Redirect "/photo/dailygallery.asp" Response.End ElseIf intPhotoNum = "" or intPhotoNum > 7 or intPhotoNum < 1 Then intPhotoNum = 1 End If 'Next Photo value for the NEXT nav element intNextPhoto = intPhotoNum + 1 'Previous Photo value for PREV nav element intPrevPhoto = intPhotoNum - 1 strSQL = "SELECT * from PhotoGallery_DailyGallery_View WHERE DailyGalleryID =" & intPhotoNum Set RS = conn.Execute(strSQL) strPhotoURL = RS("PhotoURL") strCaption = RS("Caption") strCredit = RS("Credit") strAthlete = RS("Athlete") strEvent = RS("Event") intPhotoYear = RS("PhotoYear") %> MountainZone Daily Photo Gallery


«  <% If intPhotoNum = 1 then %> PREV <% Else %> PREV<% End If %>  |   <% If intPhotoNum = 7 then %> NEXT <% Else %> NEXT <% End If %>  »
Photo <%= intPhotoNum %> of 7
<%= strCaption %>
<% If strCredit <> "" Then %>Photo: <%= strCredit %><% End If %>

BACK TO:

[Photography]
[MZ Home]


<% If strEvent <> "" Then Response.Write strEvent ElseIf strAthlete <> "" and intPhotoYear <> "" Then %> <%= strAthlete %> - <%= intPhotoYear %> <% Elseif intPhotoYear = "" or IsNULL(intPhotoYear) Then %> <%= strAthlete %> <% End If %>

1 2 3 4 5 6 7

MountainZone.com ® is a publication of Vertical Media Group, Inc.™
© <%= Year(Date) %> Vertical Media Group, Inc. Seattle, WA.