Exemplo n.º 1
0
        protected void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            var o = e.Item.DataItem as Entidad;

            e.With <HtmlInputButton>("boton",
                                     boton => boton.Attributes["onclick"] = "alert('Editar " + o.ID + "')");
            e.With <Label>("descripcion",
                           descripcion => descripcion.Text = string.Format("[{0}] {1}", o.ID, o.Descripcion));
        }