Use Site Url in SharePoint

By Sigar Dave No comments

There are several ways to reference site collection or site url in masterpage, layout page, application page and web parts.1. Token: ~sitecollection ~siteThese tokens only works with SharePoint server side controls. They do not work with ASP.NET control or HTML control.2. SharePoint Server Token <% $SPUrl:~sitecollection/…%>This token is only available for SharePoint Office Server not the SharePoint Foundation […]