简单的获取网站地址

private string GetAbsoluteUri()
{
int index = Request.Url.AbsoluteUri.LastIndexOf('/');
string path = Request.Url.AbsoluteUri.Substring(0, index + 1);
return path;
}

posted @ 2013-05-09 15:02  王者杂货铺  阅读(481)  评论(0编辑  收藏  举报