I have added one datalist
into view state as:
ViewState["datalist"] = dtlstForm;
and retrieved it as:
DataList lis = (DataList)ViewState["datalist"];
then folowing error comes:
Type 'System.Web.UI.WebControls.DataList' in Assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.