Scenario:
Each tab corresponds to a certain user control, so all of the pageviews are dynamically loaded when the tab is clicked. The page that contains the TabStrip has a navigation buttons and the Save/Cancel buttons. The Save/Cancel buttons have the appropriate logic to to actually call into the user controls and save their data. The navigation (Previous/Continue) buttons are used to navigate the TabStrip.
If there is data that hasn't been saved, and the user clicks a new tab, or one of the navigation buttons, a client side alert is shown and prompts the user to save, or lose their changes. If the user clicks to save their data, the tab selecting client side function cancels the event and calls the Save button's server side event via __doPostBack.
Issue:
When the data is saved, and no error has occurred, I need to continue to the appropriate tab that was clicked, or the next sequential tab depending on the navigation button. If an error has occurred, then the user should remain on that tab to fix any changes.
Is there a way to select a particular tab from my Button_Click server side event, if the save is successful?
Each tab corresponds to a certain user control, so all of the pageviews are dynamically loaded when the tab is clicked. The page that contains the TabStrip has a navigation buttons and the Save/Cancel buttons. The Save/Cancel buttons have the appropriate logic to to actually call into the user controls and save their data. The navigation (Previous/Continue) buttons are used to navigate the TabStrip.
If there is data that hasn't been saved, and the user clicks a new tab, or one of the navigation buttons, a client side alert is shown and prompts the user to save, or lose their changes. If the user clicks to save their data, the tab selecting client side function cancels the event and calls the Save button's server side event via __doPostBack.
Issue:
When the data is saved, and no error has occurred, I need to continue to the appropriate tab that was clicked, or the next sequential tab depending on the navigation button. If an error has occurred, then the user should remain on that tab to fix any changes.
Is there a way to select a particular tab from my Button_Click server side event, if the save is successful?