Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function resultOfValidation(result);
  2. {
  3. return result;
  4. }
  5.  
  6. function IsValidDate()
  7. {
  8. PageMethods.ComplicatedValidation(resultOfValidation);
  9. }
  10.  
  11. [WebMethod]
  12. public static bool ComplicatedValidation()
  13. {
  14. return true;
  15. }
  16.  
  17. function IsDateTimeAvailable()
  18. {
  19. var result= PageMethods.ComplicatedValidation();
  20. }
  21.  
  22. function GetValue()
  23. {
  24. return PageMethods.GetValueFromServer(
  25. function(result)
  26. {
  27. // The result that is returned from server
  28. //Now do what ever you would like to do.
  29. }
  30. );
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement