What would be the correct way to do this:
Page A:
ComboBox with values A/B/C
Button which redirects to page B.
Page B.
Button which redirects to Page A.
Start page A, combo box has the value A.
Now if i change the combo box in page A to the value B.
Click on the button which takes my to Page B.
Click on the button which takes me back to page A.
Then the viewstate for the combo has been reset to the value A.
So what are the correct way to handle this persistance ?
And what if i need to return values from page B to page A ?
Like a flag which indicates if page B has been cancelled.
In page A check if page B was cancelled and do different stuff.
How is this done ?
I know i can send parameters to page B like this asp?id=10 etc.
Do i need to do it the same way when sending back to page A ?
What i'm actually are going to do is have a datagrid + 4 comboboxes in
page A.
And a add new record function which will redirect to page B for input
of 6 values.
Then goback to page B and refresh the dataset if page B was not
cancelled.
If cancelled then display the same state for the comboboxes and the
datagrid
as before redirecting to page B.
I'm new to this so need some pointers :).