遗失的星空

导航

【Wonder原创】CheckBoxList实现单选

<asp:CheckBoxList id="cklEmployeeAPP" runat="server" Width="700px" AutoPostBack="True" OnSelectedIndexChanged="cklEmployeeAPP_SelectedIndexChanged" ToolTip="-1" />

 

Protected Sub cklEmployeeAPP_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)

        Dim i As Integer = CType(cklEmployeeAPP.ToolTip, Int16)
        If (i <> -1) Then
            cklEmployeeAPP.Items(i).Selected = False
        End If
        cklEmployeeAPP.ToolTip = cklEmployeeAPP.SelectedIndex.ToString

        ' cklEmployeeAPP.SelectedItem.Text       '''Selected Text

End Sub

posted on 2010-12-16 12:29  遗失的星空  阅读(305)  评论(0编辑  收藏  举报