[Solved] dynamically adding check box asp.net( csharp) and retain its value on postback


You have to add any dynamic controls in page_init if you want their values on postback.

For example:

void Page_Init(object Sender, System.EventArgs e)
{
   var oList = new CheckBoxList();
   // Populate the values in the list
   this.Controls.Add(oList);
}

1

solved dynamically adding check box asp.net( csharp) and retain its value on postback