你自己传的参数Folder先取Post的,再取QueryString的,

解决方案 »

  1.   

    参数名Folder是编写者自己定义的 要联系程序才知道具体是什么 可能是从 QueryString、Form、cookies等获得
      

  2.   

    不明白啊,原码是这样的只有这一句不明白
    ——————————————————————————————
    private void Page_Load(object sender, EventArgs e)
    {
    // extract from the querystring to path to scan
    folderPath = Request.Params["Folder"];
    // if the folder is not specified, or it is "/" (web server root)
    // use the application's root folder as path
    if (folderPath == null || folderPath=="/")
    folderPath = Request.ApplicationPath.ToString();
    // if the folder ends with "/", remove the last /
    else if (folderPath.EndsWith("/"))
    folderPath = folderPath.Substring(0, folderPath.Length-1); // write the physical and virtual path
    FolderDescription.Text = "Virtual folder: " + folderPath + 
    "<br>Physical folder: " + Server.MapPath(folderPath);
    // actually scan the specified folder

    }
      

  3.   

    搜索一下整个程序 看其他地方有用到str没有 可能编写者用到其他地方