I have hasa dropdwonlsit (loaded on page_load event) and an unbound checkbox is based on selection from the list dropdown list, checkbox list is checked Box (can be one or two or three or any other number) ..... I just want to know that after loading the page on the browser and clicking on the user checkbox, I need to know which key Checkboxes are selected by the users .. best to do this What's the way So far I have come up with this ...
& asp: checkbox list autopost = "true" id = "chkbox" runat = "server" repeat column = "2" repeat coordinate = Repeat "horizontal" = "table" & gt; & Lt; / ASP: CheckBoxList & gt; New roles as private sub-chk_SelectedIndexChanged (as the system, byVal E. in the form of EventArgs) new roles (as in the list of diminished list (string) () as the dim list For each Lee, if selected in 'li', then 'add' list (li.Value) 'end if next
Try it instead: chkItems.Items.Coult-1 if chkItems.Items (i) for
i = 0. Select if list.add (chkItems.Items (i) .text) end if the next Here is an example in vb.net or C #:
< / P>
Comments
Post a Comment