public string WebApplicationPath()
{
get
{
if (System.Web.HttpContext.Current.Request.ApplicationPath="/")
{
return "";
}
else
{
return System.Web.HttpContext.Current.Request.ApplicationPath;
}
}
}
它就是提示:
get: 应输入 ;
{
get
{
if (System.Web.HttpContext.Current.Request.ApplicationPath="/")
{
return "";
}
else
{
return System.Web.HttpContext.Current.Request.ApplicationPath;
}
}
}
它就是提示:
get: 应输入 ;
{
get
{
if (System.Web.HttpContext.Current.Request.ApplicationPath="/")
{
return "";
}
else
{
return System.Web.HttpContext.Current.Request.ApplicationPath;
}
}
}
去掉()
属性是没有()的。
有()是方法。