string currentPage = "http://admin.xxxx.com/mx";
HttpContext.Current.Request.RawUrl.Substring(1, 2)); //mx
SPContext.Current.Site.RootWeb.Url //http://admin.xxxx.com
SPContext.Current.Web.Url //http://admin.xxxx.com/mx
HttpContext.Current.Request.RawUrl.Substring(1, 2)); //mx
SPContext.Current.Site.RootWeb.Url //http://admin.xxxx.com
SPContext.Current.Web.Url //http://admin.xxxx.com/mx
No comments:
Post a Comment