迭代获取ViewState

string s="";
System.Collections.IDictionaryEnumerator ie=ViewState.GetEnumerator();
while (ie.MoveNext())
{
s += ie.Key.ToString()+":";
s+= ((StateItem)ie.Value).Value.ToString();

原文地址:https://www.cnblogs.com/ChineseMoonGod/p/3727812.html