Deserializing ViewState value to StateBag
<p>I have a page method (method decorated with WebMethod attribute) that I am calling via javascript.  The page method needs to access an Integer value that is stored in the ViewState.  I was hoping that my javascript call could pass in the value of the __VIEWSTATE hidden field and that I could deserialize that into a StateBag for easy use, but I haven't had any luck so far.</p>

<p>I am able do deserialize the value via LosFormatter.Deserialize(), but that returns Object (seemingly of type Pair).  I can traverse a large nest of Pairs while debugging and see my Integer value, but I haven't figured out how to convert this Pair object into a StateBag for easier use.  </p>

<p>Is this possible?</p>

<p>Anyone?</p>
