ViewState not available in ashx

Posted on 2009-04-29
Last Modified: 2012-05-06
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.

Question by:DuncanRichardson
    LVL 14

    Expert Comment

    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.

    Accepted Solution

    Found my own solution.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now