Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/03/2008, 07:52
Avatar de Peterpay
Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 17 años, 5 meses
Puntos: 87
Re: recorrer elementos desde asp.net

si tu control fuera un treeview con la opcion de elegir elementos podrias
acceder ala propiedad que se llama CheckedItems y saber cuales se seleccionarion

si no tendrias q hacer

algo asi

foreach(control currentControl in this.Controls) // this es la pagina
{
if(currentControl is CheckBox)
{
if( ((CheckBox)(currentControl)).Checked)
.....currentControl.Name; // aqui haces lo que requieras.
}
}

saludos
peter