Ver Mensaje Individual
Antiguo 14-nov-2010     #1
Predeterminado checkbox dinamicos

#region dyanamic checkboxes

//Function to generate the dyanamic checkboxes

private void AddCheckboxes(string strCheckboxText)

{

try

{

if(PnlTimeExpence.HasControls())

{

return;

}

for(int intControlIndex=0;intControlIndex=5;intControlInde x++)

{

chkList1 =new CheckBox();

chkList1.Text = strCheckboxText;

chkList1.ID="Chk"+intControlIndex;

chkList1.Font.Name = "Verdana";

chkList1.Font.Size = 9;

PnlControl.Controls.Add(chkList1);

PnlControl.Controls.Add(new LiteralControl("<;br>;"));

}

}

catch(Exception exp)

{

throw new Exception(exp.Message);

}

}

#endregion
Responder Citando
Los siguientes 3 usuarios agradecen a sasuke.17 por este mensaje:
Eloy58 (14-nov-2010), Felina05 (16-nov-2010), jchierro (15-nov-2010)