2012-03-14 22 views

回答

0

使用DataBound事件,然後將填充所有單選按鈕。

Private Sub YourRadioButtonList_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles YourRadioButtonList.DataBound 

    For Each rd As RadioButton In YourRadioButtonList.Items 

     'Or some other condition that determines the CSS Class. 
     If rd.Checked Then 

      rd.CssClass = "NewCssClass" 

     End If 

    Next 

End Sub 
相關問題