Try returning STOP instead of PROCEED.
I'm not absolutely sure about the functionality behind this, but
I believe returning PROCEED here tells NetDynamics to go ahead
and display the rest of the page. Returning STOP tells
NetDynamics to stop whatever it should normally do next, in this
case, displaying the rest of the results page.
If that doesn't work, try moving your code that loads the error
page to the onAfterDataObjectExecuteEvent event of the repeated.
Also, preced your loading of the error page with
CSpHtml.reset().
Hopefully that will help.
Randy Gettman
[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);
_________________________________________________________________________
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]