checkbox ?
-
Hi, I have many questions about checkbox : 1/I would like to create dynamicaly 8 checkbox into a form. The name of each checkbox begin with "CHECKBOX_CAM_". So : CHECKBOX_CAM_1 CHECKBOX_CAM_2 CHECKBOX_CAM_3 ... CHECKBOX_CAM_8 2/ I would like to set/get some properties like text,position, tag,... with a SQL Database. 3/ I would like to retrieve the state of the group to a byte at any moment. when the user un/select one or more checkbox. Best Regards youssef
-
Hi, I have many questions about checkbox : 1/I would like to create dynamicaly 8 checkbox into a form. The name of each checkbox begin with "CHECKBOX_CAM_". So : CHECKBOX_CAM_1 CHECKBOX_CAM_2 CHECKBOX_CAM_3 ... CHECKBOX_CAM_8 2/ I would like to set/get some properties like text,position, tag,... with a SQL Database. 3/ I would like to retrieve the state of the group to a byte at any moment. when the user un/select one or more checkbox. Best Regards youssef
:) //////////////////////////////////////// CheckBox[] CheckBox1 = new CheckBox[8]; for (int i = 0; i < CheckBox1.Length; i++) { CheckBox[i].ID = "CHECKBOX_CAM_" + i.ToString().Trim(); } /////////////////////////////////////// ... public string GetCheckBoxText(int x) { return CheckBox[x].Text; } public bool[] GetChecked() { bool[] a = new bool[8] for () { ... } return a; } ASP.NET C# VB VC & SQL Windows APP ...