When I use SPContext.Current.Site.Url it returns "http://servername"
I need the full homepage URL which is "http://servername/SitePages/Home.aspx"
Does anyone know how to get this programmatically?
|
When I use I need the full homepage URL which is "http://servername/SitePages/Home.aspx" Does anyone know how to get this programmatically? |
|||
|
|
|
To get full url (absolute), you have to :
|
|||
|
|
|
as an addition, in general, if you are inside a page and you want to get full path you always can use:
|
|||
|
|