User-697123544 posted
Hi,
I am in the process of developing an web application. One of the requirement is to maintain a DataTable till the execution of the page is complete, i.e., a datatable would be defined upon the page being loaded and subsequently data(rows) would be inserted
into the datatable based on user action and finally when the user clicks the save button, the datatable will be re-organised and saved to a database. To achieve this, I proposed to maintain the datatable in a session variable which will be defined when the
page is loaded. Any addition & changes will be saved to same session variable.
Now my question is:
1. Is this method viable?
2. I know that the session variable has time out value which is defined in the web.config, I would like to know if the timeout is calculated from the rendering of the page (i.e., loading for the first time) or from the last time the page was reloaded (i.e.,
postback)?
3. Is there any other method through which this can be accomplished.
Thanks in advance.