How do I get access to the correct SPSite entity from a webpart

To get access to the correct SPSite entity from a webpart use the SPContext.Current where you have access to both the current site and web.

Posted under Developer

This post was written by furuknap on January 6, 2009

Tags: ,