SharePoint URL Functions
Posted on Thursday, 04 June 2009 16:00Various ways to get information about the current URL with SPContext.
SPContext.Current.Web.Url: http://sharepointserver/en-GB
SPContext.Current.Site.Url: http://sharepointserver
SPContext.Current.File.Name: Filename.aspx
SPContext.Current.File.ServerRelativeUrl: /en-GB/Pages/Filename.aspx