asp.net autopostback event "oncheckedchanged" not firing
Opened this issue · 0 comments
PIS-Borland commented
Using the toggle like this:
<asp:checkbox id="chkShowActive" runat="server" cssclass="form-check-input" AutoPostBack="true" OnCheckedChanged="chkShowActive_changed" CausesValidation="false" />
I must add the attributes from the code behind -
chkShowActive.InputAttributes.Add("data-toggle", "toggle") chkShowActive.InputAttributes.Add("data-onstyle", "info") chkShowActive.InputAttributes.Add("data-size", "sm")
Any help would be appreciated.