Implement Bootstrap RadioButton group with checked changed event using jQuery iCheck plugin in ASP.Net

Last Reply one year ago By AnandM

Posted one year ago

Hiii ,

I want to implement Bootstrap radio Button Group in with checkbox/Radio Button with its checkChanged/Selected Event.

On that basis i want to do some operation from code behind.

Posted one year ago

Hi Amol111,

I have created a sample which full fill your requirement you need to modify the code according to your need.

I have taken reference from below link.


Refer below sample code.


    <asp:RadioButtonList ID="rblResult" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="RadioButtonChanged"
        <asp:ListItem Text="Pass" />
        <asp:ListItem Text="Fail" />
    <script type="text/javascript" src=""></script>
    <link href="" rel="stylesheet" />
    <script type="text/javascript" src=""></script>
    <script type="text/javascript">
        $(document).ready(function () {
                radioClass: 'iradio_square-red',
                increaseArea: '20%'
            $('[id*=rblResult]').each(function () {
                var $element = $(this);
            $('.icheck').each(function () {
                $onclick = $(this).attr("onclick");
                $iCheckName = $(this).attr("name");
                $buttonTrigger = 'input[name="' + $iCheckName + '"';
                var $this = $(this);
                if ($onclick != undefined) {
                    if ($onclick.length > 0) {
                        $($buttonTrigger).on('ifChecked', function (event) {


protected void RadioButtonChanged(object sender, EventArgs e)
    string selectedItem = (sender as RadioButtonList).SelectedItem.Text;
    string script = "alert('" + selectedItem + "')";
    ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", script, true);


Protected Sub RadioButtonChanged(sender As Object, e As EventArgs)
	Dim selectedItem As String = TryCast(sender, RadioButtonList).SelectedItem.Text
	Dim script As String = (Convert.ToString("alert('") & selectedItem) + "')"
	ClientScript.RegisterClientScriptBlock(Me.[GetType](), "alert", script, True)
End Sub