<% if (Request.ServerVariables("QUERY_STRING") = "") then %>

foo

<% else %>

<% =Application("foo") %>

<% end if %>