ViewState

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Normally you just access ViewState with: ViewState["key"] = object;

I am writing a grid utility class which provides generic event handlers to do paging/sorting etc. I want to be able to access the ViewState for the control from these classes. How do I do that?

e.g. myGrid.Page.Request/Response/Session etc, I can't find a ViewState equivalent.

Your help is appreciated

Thanks

Dan.
 
Figured it out. Thanks.

ViewState is an instance of StateBag, and I can simply pass an instance to it thru my function call.
 
Back
Top