I want to load an alternate page when there are no results returned from a search.
          I have used this code but it only works when I set the row to 1, the pgSorry 
comes
         both up when there are no results returned AND when there are 1 row returned. 
 If
         I set it to 0 nothing happens.  I'm not sure why the currnumrows is 1 when no 
results
         are returned.  Anyone have any ideas?

public int Repeated1_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent event)
        {
                
    int rows;
    CSpRepeated pRepeated = getRepeated("Repeated1");
    rows = pRepeated.getCurrNumOfRows();
    if( rows == 0 )
    {
        CSpHtml.reset();
        CSpider.getPage("pgSorry").load();
    }    
    return (PROCEED_WITH_BUILTIN_HANDLING);
    
    
        }
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to