Ciao
Ho una doamnda da chiedere.
Come faccio a scattare una function c'è è lato server tramite Javascript??
codice:<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="server"> <script language=javascript> function check() { if (document.getElementById("tipo_piano_tariffa").value == 1 && document.getElementById("tipo_tariffa").value == 1 ) { alert("Attenzione, non possono essere attive le opzioni scalari e tariffa speciale contemporaneamente!"); return 0; } //return devo chiamare qui una funzione in c# lato server; } </script> .... <%if (ConfigurationManager.GetSection("Revenues")("Enable_Abbonamenti_Scalari")= True) and (ConfigurationManager.GetSection("Importi")("Enable_Tariffe_New_Convenzioni")= True) Then%> <input TYPE="button" VALUE="Continua" class=buttons onClick="javascript:{check();}"> <%Else% <asp:Button ID="Button1" runat="server" Text="Continua" /> <%end if% </asp:Content>
grazie

Rispondi quotando