在2个控件之间插入文本

时间:2009-11-26 16:55:51

标签: c# asp.net

我希望在单元格中的2个下拉列表中插入“:”。

tableCell.Controls.Add(DropDownListOraInizio);            
tableCell.Controls.Add(DropDownListMinutoInizio);

我该怎么办?

感谢

1 个答案:

答案 0 :(得分:4)

tableCell.Controls.Add(DropDownListOraInizio);    
tableCell.Controls.Add(new LiteralControl(":"));      
tableCell.Controls.Add(DropDownListMinutoInizio);