[EMAIL PROTECTED] wrote:

> When I get 0 records returned from an implicit query I want to load an Error page
         instead of loading the page that the results were initially set to go to.  
The Error
         page loads ok, but it copies it on top of the origianl page, so I have two 
different
         pages loaded on my screen.  Any idea on how to load the Error page only.
> My code in the dataobject:
> if 0 records returned {
>                 CSpPage nextPage = CSpider.getPage("pgError");
>                 nextPage.load("pgError");
>                 return (PROCEED);

Here is what I have:

  //Load empty page when no records are returned
  if ( rowCount <= 0 )
  {
    CSpPage pgEmpty = CSpider.getPage("pgEmpty");
    load("pgEmpty");

    return (SKIP);
  }

begin:vcard 
n:Ford;Steven
tel;work:(615) 343-7358
x-mozilla-html:TRUE
org:Vanderbilt University;MIS
adr:;;134 Magnolia Circle;Nashville;TN;37203;
version:2.1
email;internet:[EMAIL PROTECTED]
title:MIS Consultant
x-mozilla-cpt:;-1
fn:Steven Ford
end:vcard

Reply via email to