using Microsoft.VisualBasic; using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Diagnostics; public class AdvancedCheckBoxList : CheckBoxList { protected override void RenderItem(ListItemType itemType, int repeatIndex, RepeatInfo repeatInfo, HtmlTextWriter writer) { writer.Write("
"); CheckBox checkbox = new CheckBox(); checkbox.ID = ClientID + "$" + repeatIndex.ToString(); checkbox.AutoPostBack = AutoPostBack; checkbox.Checked = Items(repeatIndex).Selected; checkbox.TextAlign = TextAlign; string initialText = Items(repeatIndex).Text; string[] cadenas = initialText.Split(';'); //img: images/milogo.gif, 210, 145 <----- ; -----> text: mi texto writer.Write(""); checkbox.RenderControl(writer); writer.Write("
"); } }