MyAuthenticationService.asmx 494 B

12345678910111213141516171819202122
  1. <%@ WebService Language="C#" Class="MyAuthenticationService" %>
  2. using System.Web.Services;
  3. using System.Web.Script.Services;
  4. [ScriptService]
  5. public class MyAuthenticationService : System.Web.Services.WebService
  6. {
  7. [WebMethod]
  8. public bool Login(string userName,
  9. string password, bool createPersistentCookie)
  10. {
  11. //Place code here.
  12. return true;
  13. }
  14. [WebMethod]
  15. public void Logout()
  16. {
  17. //Place code here.
  18. }
  19. }