I would like to know what would be the best practice in .net for the following
I currently have a .net application which i am busy with and just would like to know what would be the best practice of handling the data.
Currently on page load i have some data that gets loaded into a datatable which is used as the datasource for a datagrid.
in the grid there is a link which the user clicks which redirects them to a calculation page and once completed on the calculation page, the application redirects to the previous page and i pass the calculation back to the previous page through a datatable in a viewstate.
Is this the best way or is there a better way of handling this?
What I have tried:
currently i pass a session variable which holds a uniqueId for the row being updated, to the calculation page once the calculation is done i have a viewstate which holds a datatable with the uniqueid and update the fields in the datatable and on redirect do a select on the viewstate datatable to see if the data exists for the rowId = uniqueid and update the columns in the datagrid if there is data