protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
{
this.HasLoadPostData = true;
bool isChecked = false;
string val = postCollection[this.UniqueName];
this.SuspendScripting();
this.RawValue = val;
this.ResumeScripting();
if (val.IsNotEmpty() && val.Equals(this.InputValue))
{
try
{
this.SuspendScripting();
if (!this.Checked)
{
this.Checked = true;
isChecked = true;
}
}
finally
{
this.ResumeScripting();
}
return isChecked;
}
try
{
this.SuspendScripting();
if (this.Checked)
{
this.Checked = false;
}
}
finally
{
this.ResumeScripting();
}
return isChecked;
}