C sharp - CHECKBOX name

 
Vista:

CHECKBOX name

Publicado por CRACKMAN (5 intervenciones) el 05/01/2007 10:41:41
Hola, me estoy creando Checkbox de forma dinamicamente , para ir a mandarlo todos a un HTMLTABLE. NEcesito poner un nombre comun a todos los checkbox, pero solo me deja elegir el id, y cuando me eligo el id, automaticamente me pone el mismo valor al name. ¿Como puedo elegir un id y un nombre diferente? Hay alguna funcion para elegir el id y el nombre? O voy a necesitar utilizar un checkboxlist?

private CheckBox create_CheckBox(string IdNoticia)
{
CheckBox Check = new CheckBox();
Check.Attributes.Add("name","Checking");
Check.ID = IdNoticia;
Check.Checked= false;
return Check;
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder