bool IPostBackDataHandler.LoadPostData(string postDataKey, NameValueCollection postCollection)
{
this.HasLoadPostData = true;
string val = postCollection[this.ConfigID.ConcatWith("_Checked")];
if (val.IsNotEmpty())
{
bool checkedState;
if (bool.TryParse(val.ToLowerInvariant(), out checkedState))
{
if (this.Checked != checkedState)
{
try
{
this.SuspendScripting();
this.Checked = checkedState;
}
finally
{
this.ResumeScripting();
}
return true;
}
}
}
return false;
}