skip to Main Content

OnClick event not hitting the back end ASP.NET

I have a button that looks like this with both OnClick and OnClientClick events <asp:Button ID="btnExecute" CssClass="btn btn-primary" runat="server" Text="Execute" OnClientClick="setHiddenValues();" OnClick="Execute_Click" /> <script type="text/javascript"> function setHiddenValues() { //set some values } </script> EDIT: the code behind looks like this.…

VIEW QUESTION
Back To Top
Search