I've made a web-application with 2 webforms, let me call them A and B
When A loads for the very first time a connection to a database is made, data added in DataSet, and some dataTables added to the DataSet
and everything is bound to a dataGrid
By clicking on some buttons, B is loaded, where i manipulate the data in the DataTables
Then there is a redirection to A again
There i just want to do a dataBind of the changed dataTables in my DataSet...
Which construction do i have to make for this situation
I've done smth like this code, but this doesn't work...
The part between If not ispostback then and else may just be done once, on the very first time
How can i do that?
For A:
Sub Page_load
If not ispostback then
...
get data in dataSet
add some dataTables
Databind to datagrid
...
Else
Bind dataGrid
End if
End sub