About      |       Articles      |      Services      |      Software      |      Contact

Latest Free SharePoint Software

ARB Security Solutions regularly releases free SharePoint software, including WebParts, Client Applications, Framework Extensions, and other Miscellaneous Components.
The most recent freeware is:

Title: Simple SharePoint Rollup WebPart
Date Published: 10/22/2009

Previous Two Free WebPart Releases:

SecureCenter For SharePoint

By SharePoint security integrators, for SharePoint security integrators.

SharePoint Security Assurance Program™

For externally facing SharePoint deployments, security is an acutely important deployment concern. Learn how through daily security scanning, you can ensure external business users and partners that they can collaborate in confidence!

Security Assurance WebPart:



MembersipCreateStatus Switch/Case with Undefined Actions

The code itself is pretty self explanatory and is very unamazing. Taking the values that are available from the System.Web.Security.MembershipCreateStatus enumeration that specifies the result of the CreateUser operation, here is a switch/case to go through all of them to save you some time when testing the result. Honestly, I just got tired of writing it and wanted a place where I could reference it :) but it might save some people some time I suppose.

C#:
  1. public static void GetStatusResult(MembershipCreateStatus status)
  2. {
  3. switch (status)
  4. {
  5. case MembershipCreateStatus.DuplicateEmail:
  6. //
  7. break;
  8. case MembershipCreateStatus.DuplicateProviderUserKey:
  9. //
  10. break;
  11. case MembershipCreateStatus.DuplicateUserName:
  12. //
  13. break;
  14. case MembershipCreateStatus.InvalidAnswer:
  15. //
  16. break;
  17. case MembershipCreateStatus.InvalidEmail:
  18. //
  19. break;
  20. case MembershipCreateStatus.InvalidPassword:
  21. //
  22. break;
  23. case MembershipCreateStatus.InvalidProviderUserKey:
  24. //
  25. break;
  26. case MembershipCreateStatus.InvalidQuestion:
  27. //
  28. break;
  29. case MembershipCreateStatus.InvalidUserName:
  30. //
  31. break;
  32. case MembershipCreateStatus.ProviderError:
  33. //
  34. break;
  35. case MembershipCreateStatus.Success:
  36. //
  37. break;
  38. case MembershipCreateStatus.UserRejected:
  39. //
  40. break;
  41. }
  42. }

  • Share/Bookmark

1 Comment »

  1. Is there anyway to automate the enumeration writeout?

    Comment by James R. — April 14, 2009 @ 8:36 am

RSS feed for comments on this post. TrackBack URL

Leave a comment