<asp:Button ID="btnSave" runat="server" Text="Save" class="button" onclick="btnSave_Click" OnClientClick="Page_ClientValidate(); return CompareDate(); " />
function CompareDate() { var flag =falsel //some validation code //(this will set the flag based on some condition) //ajax post method //(here again some data is compared) //based on the last value of flag it will return true or false. n }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)