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:



Hey! Use A Method To Get Your SPList!

Well, maybe it is just me, but you should generally use a method in order to get a reference to your SharePoint lists. For example, you are generally getting a reference as such:

C#:
  1. using(SPSite mySite = new SPSite("http://server/"))
  2. {
  3. using(SPWeb myWeb = mySite.OpenWeb())
  4. {
  5. SPList myList = myWeb.Lists["MyList"];
  6. }
  7. }

But wouldn't it be better to use a method?

C#:
  1. public static SPList GetList(SPWeb website, string listName)
  2. {
  3. if (website == null)
  4. {
  5. return null;
  6. }
  7. try
  8. {
  9. return website.Lists[listName];
  10. }
  11. catch
  12. {
  13. return null;
  14. }
  15. }

You could then use this between your setting of your web references. I think it is a much better, much more elegant approach when getting a reference to a list, but hell, maybe it's just me :-)

  • Share/Bookmark

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment