This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 4 months ago.

Checkbox Switch


  • Jay
    Participant

    Posts: 15
    Member Reply #7406

    Hi,

    I am using the checkbox switch:

    <input type=”checkbox” class=”make-switch” checked data-on-color=”default” data-off-color=”danger” data-on-text=”No” data-off-text=”Yes”>

    This works fine, but when I convert it to .NET, it stops working:

    <asp:CheckBox runat=”server” ID=”cbDisabled” CssClass=”make-switch” checked=”true” data-on-color=”default” data-off-color=”danger” data-on-text=”No” data-off-text=”Yes” />

    Any ideas?

    Thanks

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #7421

    Hi,

    First of all please make sure that the output of your .NET code matchs the original workable checkbox format:

    <input type=”checkbox” class=”make-switch” checked data-on-color=”default” data-off-color=”danger” data-on-text=”No” data-off-text=”Yes”>

    Also can you check your browser console and make and provide us JS error log if any ?

    We are not .NET developers so we do not know how the above code renders the checkbox. Is the checkbox rendered in backend and or at the frontend by .NET JS code ?

    Thanks.

You must be logged in to reply to this topic.