spcontext

在子网站下得到的值

SPContext.Current.Site.Url.ToString();  

http://moss-dev/

 

SPContext.Current.Web.Url.ToString();

http://moss-dev/MyTest

 

SPContext.Current.Site.RootWeb.Url.ToString();

http://moss-dev/

posted @ 2010-12-09 17:53  China2008  阅读(229)  评论(0)    收藏  举报