I am having trouble with the validation function that is supposed to be triggered when clicking on the back and next buttons in my code.
For some reason, the OnClientClick validation function is not being called when I click on the buttons. Can anyone provide assistance?
Here is a snippet of the code:
<asp:Button ID="btn_view1_back" runat="server" Text="Back"
CausesValidation="False" ValidationGroup="Form2" />
<asp:Button ID="btn_View1_Next" runat="server" CausesValidation="true" Text="Next"
ValidationGroup="Form2" OnClientClick="return ValidateDropDown();"
UseSubmitBehavior ="true" />