Hi,
You need to write the code in a condition that will restrict
public void Page_Load(object sender, EventArgs e)
{
if(!this.IsPostBack)
{
using (SqlConnection con=new SqlConnection ())
{
con.Open ();
using (SqlCommand cmd = new SqlCommand())
{
using (SQLDataReader rd = cmd.ExecuteReader())
{
while(rd.Read())
{
CheckBox chk = new CheckBox();
chk.ID=string.Fromat("CheckBox_{0}", rd["PrimaryKey/AnyValue"]);
chk.Checked+= new EventHandler(checkbox_checked);
}
}
}
}
}
}
public void checkbox_checked(object sender, EventArgs e)
{
}