I took this function on using viewstate from Microsoft MSDN at
http://msdn.microsoft.com/library/de...classtopic.asp
and am getting this error: System.Web.UI.Control.viewState is not
accessible in this context because it is "Private".
There is always something in these articles they don't tell you, what am I
missing??? It's stopping at the Dim myDictionaryEnumerator As
IDictionaryEnumerator = _viewstate.GetEnumerator()
Public Function EnumerateViewState() As String
Dim keyName, keyValue As String
Dim result As String = [String].Empty
Dim myStateItem As StateItem
Dim myDictionaryEnumerator As IDictionaryEnumerator =
_viewstate.GetEnumerator()
While myDictionaryEnumerator.MoveNext()
keyName = CStr(myDictionaryEnumerator.Key)
myStateItem = CType(myDictionaryEnumerator.Value, StateItem)
keyValue = CStr(myStateItem.Value)
result = result + "<br>ViewState[" + keyName + "] = " + keyValue
End While
Return result
End Function 'EnumerateViewState