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 }

你可能感兴趣的:(current)