mercredi 11 mai 2022

OnCheckedChanged not working in Asp.Net and VB (codebehind)

I have a problem with the trigger of the OnCheckedChanged. When I click the checkbox (switch toggle), the OnCheckedChanged is not firing. I already tried many solutions like trigger it in JS part but no luck.

Below is the checkbox code:

<input type="checkbox" data-toggle="toggle" data-onstyle="info" data-offstyle="secondary" data-on="Ja" data-off="Nee" data-size="xs" runat="server" 
                        oncheckedchanged="showProductFoto_CheckedChanged" AutoPostBack="true"
                        style="margin-top: -5px;"  runat="server" id="showProductFoto" onchange="IncludeWithoutPhotos(this)" ClientIDMode="Static"/>



Aucun commentaire:

Enregistrer un commentaire