By Andrew Harper - 5/11/2011
Hi,
I have a web application where all the web forms use a common application base page where the BOs are defined. One BO is only required by 1 page in the application and when this page is selected by the user the BO will be populated with approx 2000 records in the page load.
Where should I clear this BO so that the 2000 records will not be saved/restored to/from session variables for all subsequent pages that inherit from the same application base page?
Best regards,
Andy
|
By Greg McGuffey - 5/11/2011
I'm not a web guru, but I'd try the page Unload event first.
|
By Andrew Harper - 5/11/2011
Hi Greg,
Thanks - this will work in some situations but what if I need to reference the contents of the BO in a callback or postback to the page that loaded the BO?
best regards,
Andy
|
By Greg McGuffey - 5/11/2011
I did mention I wasn't a web guru right?
Any reason your not just creating a base page for just this one form?
Hopefully someone who's done some more extensive web dev with SF will step in soon....
|
By Andrew Harper - 5/11/2011
Thanks Greg,
I have a number of subroutines in the application base page, that are common to all pages, to control session timeouts and menu option availability so hence my preference to have a single base page. I guess I can add another level of subclass and create a second application base page, but, if I am understanding the framework correctly, even if I do this the 2000 odd records will be saved in a session variable that will not ever be cleared unless I clear the BO explicitly somewhere.
What I am trying to determine is where the best place is to clear it,
Best regards,
Andy
|
|