跟小D每日学口语

get current web url code

public static string CurrentWebPathLink
{
get
{
return "http://" + HttpContext.Current.Request.ServerVariables["Http_Host"] +HttpContext.Current.Request.ApplicationPath;
}
}

public static string CurrentWebPathLink
    {
        get
        {
            return "http://" + HttpContext.Current.Request.ServerVariables["Http_Host"] +HttpContext.Current.Request.ApplicationPath;
        }
    }
1 public static string CurrentWebPathLink
2 {
3 get
4 {
5 return "http://" + HttpContext.Current.Request.ServerVariables["Http_Host"] +HttpContext.Current.Request.ApplicationPath;
6 }
7 }
posted @ 2011-06-24 16:56  Danny Chen  阅读(169)  评论(0编辑  收藏  举报