ViewState

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.
 
G

Guest

Figured it out. Thanks.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,076
Latest member
OrderKetoBeez

Latest Threads

Top