I Have a problem with two checkBoxes!
private CheckBox rdYes;
private CheckBox rdNo;
rdYes = new CheckBox();
rdYes.Text = "Yes";
rdYes.Checked = false;
rdNo = new CheckBox();
rdNo.Text = "No";
rdNo.Checked = false;
Error:
Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation
I instantiating the checkboxes in :
protected override void CreateChildControls()
{
this.Controls.Add(rdYes);
this.Controls.Add(rdNo);
}
And I need to check one CheckBox.

CreateChildControlsshould also call the base method. - Alexander