• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1122
  • Last Modified:

ViewState not available in ashx

Hi All,

I have a menu webpage(aspx) which accepts some querystring params. These params are then stored in ViewState. The menu is dynamically collapsed/expanded by an ajax call to an ashx handler page.

However the params are not available to me thru the ViewState.

What am I doing wrong?

Thanks in advance.

1 Solution
ViewState comes into the page class from ITemplateControl.  It is also part of the Control class.  This means, you need to extend your handler from Control also to make it work with viewstate.
DuncanRichardsonAuthor Commented:
Found my own solution.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now