I have a button on page 1 which sends me to page 2. In the web event of the
button I set a pagesession object on page 2 to store the page name where
page 2 got called from.

The problem I am facing is that whenever I come back to page2 its showing
the previously entered values.

I was hoping there was a way to have no-cache on the page to prevent this
problem.

If I Use load(true) wouldn't it clear up the pagesession object too?

        public int btnAddElement_onWebEvent(CSpWebEvent event)
        {
                CSpPage nextPage = CSpider.getPage("Page2");
                
                nextPage.putPageSessionObject("NEXTPAGE",new
CSpString("Page1"));
                
                nextPage.load(false);
                
                return(STOP);
        }
-----Original Message-----
From: Curt Springer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 27, 1999 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [ND] No cache for pages on the server.


At 02:19 PM 5/27/99 -0500, Shamdasani Nimmi-ANS004 wrote:
>Hi,
>
>Putting
>
><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
>
>prevents page caching only for the browser. Is there a way to set no-cache
>on a page on the server?
>
>Also is there any method to clear all display fields on a page instead of
>clearing them individually?

-----setClearBeforeDisplay(true) or Load(true) will cause the fields to be
cleared first when the page is next displayed.

-- Curt Springer, Team ND

>
>
>-Nimmi
>
>_________________________________________________________________________
>
>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]
> 
_________________________________________________________________________

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]
_________________________________________________________________________

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