Sharing Data Across Sessions
You can share the data from primary, delete, and filter buffers of read-only DataWindow objects across Web Forms application sessions.
Sharing DataWindow objects
The Web.config file global property PBCachedAndSharedDWs is available for this purpose. You must set its value to the string of comma-delimited names of the DataWindow objects you want to share across application sessions.
For information on modifying global properties, see Viewing and Modifying Global Properties in the IIS Manager
.
- Only a single invocation of Retrieve is allowed, and the Retrieve call must not include parameters.
- No filtering or sorting is allowed.
- No deletions, insertions, data modifications, or updates are allowed.
- No invocation of ShareData or ShareDataOff is allowed.
When this form of sharing is used, the retrieval events are not fired. This is because the Retrieve method shares the data in the cache and no actual retrieval occurs.
Sharing DDDW objects
It is also possible to share the data of DropDownDataWindow objects across Web Forms application sessions. The global property PBCachedAndSharedDDDWs is used for this purpose. You can set its value to a string of comma-delimited names of DataWindow objects. Each DataWindow object that you list can then be shared as the child DataWindow of a DropDownDataWindow column.
For more information about rendering DDDW columns, see DataWindow objects and controls
.
- No invocation of Retrieve is allowed.
- No filtering or sorting is allowed.
- No deletions, insertions, data modifications, or updates are allowed.
- No invocation of ShareData or ShareDataOff is allowed.