public string WebApplicationPath()
{
get
{
if (System.Web.HttpContext.Current.Request.ApplicationPath="/")
{
return "";
}
else
{
    return System.Web.HttpContext.Current.Request.ApplicationPath;
}
}
}
它就是提示:
get: 应输入 ;