摘要:        
DropDownList1.Items.Insert 与 DropDownList1.Items.Add 的区别,Add方法是把列表项插入下拉列表的尾部!Insert方法是把列表项插入下拉列表的指定位置!
ListItem 有两个属性 Text 用于显示的 Value 用于记录值,SelectedValue  是取选中项的 ListItem 的 Value 值, Items[DropDownList1.SelectedIndex].Text   是指定索引处 ListItem 的 Text 值,两者是不一样的,如果要取选中项的 Text, 可以用 SelectItem.Text    阅读全文
posted @ 2012-06-30 08:15
逆水寒龙
阅读(5591)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号