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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top