Hi JasonT2,
Without knowing a bit more detail on your feature, it is hard to comment on what happened there. However, you should be able to keep the ToggleButton setting in places such as viewstate or session state to maintain its toggle status. You just
need to implement the logic in your code to check for toggle state based on where the user is and other conditions for your feature.
Cheers,
Jeff- MSFT