Hot answers tagged viewstate
1
I think you answered your own question in your comment:
So I better go for using getter and setter methods with different keys
for the viewstate.
You can have a unique key with 'this.ID', which give you the webpart 'guid'.
If you want to share similar logic between webparts or controls in general, you can also create a static 'helper' class.
Only top voted, non community-wiki answers of a minimum length are eligible