excuse me if simple or there's better way this. want subsite's url, , use in master page in c#. know can use <sharepoint:projectproperty property="url" runat="server"/>
in master page grab url property, want able use in c# block. end goal able include content file , output through master page.
you can url
value spsite
specifically, can value current site:
spcontext.current.site.url
the url property contains string such
http://host_name:80/sites/site_name
. note url not end slash ("/").
Comments
Post a Comment