I have a question regarding viewstate..Why for the following control i get failed to load view state...This control is added dynamically..and enableviewstate is set to true. However if i comment the viewstate part it works fine.

public partial class ThmbListing : Kentico.CMS.CMSControls.InlineUserControl
{
private string sorttype = "default";

protected string SortExpression
{
get
{
object o = ViewState["SortExpression"];
if (o == null)
return string.Empty;
else
return o.ToString();
}
set
{
ViewState["SortExpression"] = value;
}
}

public string SortingOrder
{
get
{
return this.sorttype;
}
set
{
//this.Label1.Text = value;
this.sorttype = value;

}
}

protected void Page_Load(object sender, System.EventArgs e)
{

if (!Page.IsPostBack)
{

ViewState["SortExpression"] = "hello";
Label1.Text = Convert.ToString(ViewState["SortExpression"]);
}
else
{

Label1.Text = Convert.ToString(ViewState["SortExpression"]);
}

}