Javascript code
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server" >
<script type="text/javascript">
function ValidatePage()
{
PageMethods.SaveAndMoveTo_Page3("abcd", CallSuccess, CallFailure);
}
</script
</asp:content>
Button event will trigger a call to the function validatePage()
<asp:Button ID="Button2" runat="server" style="background-color: #CC0D0D; border-radius: 5px; "
ForeColor="#c8c8c8" OnClientClick ="ValidatePage();" Text="Next" Width="120px" />
aspx page
<asp:ScriptManager ID='ScriptManager1' runat='server' EnablePageMethods='true' />
is already added in the site master.
I need the Javascript method to call SaveAndMoveTo_Page3() method in the code. Somehow PageMethods is not calling the method in my C# code.
Please help.