Search code examples
sharepointsharepoint-2010web-parts

How to know programatically if current page is homepage in Sharepoint 2010?


Is there an easy way to programmatically know if the current page is a site homepage from a webpart code behind?


Solution

  • I think I've found the answer here: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcontextpageinfo.iswebwelcomepage.aspx