Below the simplified code: Current behavior
1. When clicking on "divOnoff", the div class "divOtivoOnOff" toggles the value of each click between "OnOff on" and "OnOff off". How to save this value in HiddenOnOff?
<asp:Repeater ID="RptModulos" runat="server" OnItemDataBound="RptModulos_ItemDataBound">
<ItemTemplate>
<asp:UpdatePanel ID="UpdModulo" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<div class="OnOff off" id="divAtivoOnOff" runat="server">
<asp:HiddenField id="HiddenOnOff" runat="server" value="off" ></asp:HiddenField>
<div class="control-on-off">
<span class="lbl-off">INATIVO</span>
<div id="divOnoff" class="on-off">
<span class="interruptor"></span>
</div>
<span class="lbl-on">ATIVO</span>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</ItemTemplate>
</asp:Repeater>