* WebControl.cs: if savedState is not an instance of Pair in
LoadViewState, do not attempt to load from it.
svn path=/trunk/mcs/; revision=128793
+2009-03-06 Marek Habersack <mhabersack@novell.com>
+
+ * WebControl.cs: if savedState is not an instance of Pair in
+ LoadViewState, do not attempt to load from it.
+
2009-02-10 Marek Habersack <mhabersack@novell.com>
* ImageButton.cs: AddAttributesToRender renders the onclick
protected override void LoadViewState (object savedState)
{
- if (savedState == null) {
+ if (savedState == null || !(savedState is Pair)) {
base.LoadViewState (null);
return;
}