Tag Info

Hot answers tagged

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.


1

this refers to current instance of a class. So this.ViewState refers to viewstate of the control\webpart. So, logically you are wrong here as you are trying to retrieve from the place where you never stored! Now speaking practically, Because the ViewState property is marked as protected, you can't get a control's ViewState in another. If you want to share ...


1

No manual operation is required as long as you are using Out of the box box Sharepoint components. If you are using some custom code, please clarify what is it you are trying to do.



Only top voted, non community-wiki answers of a minimum length are eligible