Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
720
Clear Rows And DataViewState On window unload?
posted

Hello:

Is it possible to clear the rows collection and dataviewstate through the CSOM - preferrably on window.unload? I am currently developing a page that contains a webdatagrid that sits inside of a page that sits inside of a master page. When navigating away from the page with the grid, updating the data source (such as  truncate the table during testing) and then returning to the page, all of the data is still there (even though I truncated the table on the database).

I put code in the Page_Load event of the page with the webdatagrid to clear the rows and bind the datasource but the Page_Load event does not fire when the user returns to the page.

Thank you,