Ejemplo n.º 1
0
        private string GetCheckedListBoxHtml(CheckedListBoxControl control)
        {
            if (control.Items.Count == 0)
            {
                control.FillData();
                ControlFilterRefresh(control);
            }
            string id   = GetControlID(control);
            string html = string.Format("<span style=\"{0}\" name=\"{1}\" size=\"{2}\" id=\"{3}\">{4}</span>",
                                        // style
                                        GetCheckedListBoxStyle(control),
                                        // name
                                        control.Name,
                                        // size
                                        control.Items.Count.ToString(),
                                        // title
                                        id,
                                        GetCheckedListBoxItems(control)
                                        );

            control.FilterData();
            return(html);
        }