I have tried setting the values to null in the Menu form but the problem is,
Award form & therefore not running the code to clear the form.
problem in the Load event not being triggered.
"Eric Giles" wrote:
> Do you need to use the Session object to retain these values? Have you
> considered using a server-side transfer and then accessing server-side
> property values via the context?
>
> Have a look at the following article.
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.asp
>
> The other thing you could do would be to explicitly set the Session object
> values to nothing - empty strings etc. from the menu page prior to
> redirecting the user to the awards page.
>
> HTH.
>
> "John Clennett" wrote:
>
> > Thanks Mehfuz I've tried you suggestions but to no avail I'm afraid.
> >
> > Looking into it further I seem to of pinned the problem down to the Menu
> > User Control I'm using.
> > When you select from the menu dropdown list in debug, it appears the
> > Page_Load event in the Awards form isn't being triggered & it's here it
> > checks the Session variables to see if there are values to populate the Form.
> > It's almost like it's held the form in memory & just re-displaying it.
> > Putting an extra button on the Menu form for testing, & opening the Awards
> > page from there all works fine.
> >
> > Any further ideas on what may be causing this?
> >
> > Thanks,
> >
> > John
> >
> > "Mehfuz Hossain" wrote:
> >
> > > looks like you have multiple problem.now this can be possible , when
> > > the sesion is not cleared properly.. . Did you do the
> > > Session.Abandon(); , or did you checked the Customer deatils load mehod
> > > ( whether it is loading a default customer or not),or the link you are
> > > redirecting still holding a customer Id.
> > >
> > > Follow these steps to find your problem
> > > ----------------------------------------------------------
> > > 1. Revise you customer load method.
> > > 2. Check if the session cleared and abandonded properly.
> > > 3. check the url you are navigating to, is this dynamically built and
> > > holds a default customer from database?
> > > 4.Is the viewstate of the controls are set to false.
> > >
> > > Best Regards,
> > > Mehfuz Hossain.
> > >
http://www.mehfuz.com > > >