大家好,
我用asp.net,其中radiobutton控制項裡的items是從db撈出來的,
for i as integer=0 to oDataTabel.rows.count-1
RadioButtonList1.Items.Add(oDataTable.Rows(i).Item(0))
next
假設db儲存中文,page_load時RadioButtonList1的各個item有出來(中文)
當我去select某個item時,我將RadioButtonList1快速監聽式發現,
每個item的select值都為false,表示我點選item的動作沒反應,
後來我將db儲存英文的item,同樣的動作卻ok,
當我點選某個item時,RadioButtonList1.items.item(某itemindex).select=true,
這到底是什麼原因? 只是中英文的差別卻有不同反應...
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.96.98.77