我想知道为什么我的 Response.Redirect 不起作用。所以基本上,我阅读了我文件夹中的文件,或者确切地说是 index.html。当我找到它时,我会重定向到它。
 foreach (System.IO.FileInfo thefile in fiArr)
        {
            if (thefile.Name == "index.html")
            {
                //Response.Redirect(path + "/index.html", false);
                Response.Redirect("C://inetpub//wwwroot//Folder//" + ((LinkButton)sender).ID,     false);
            }
        }
我只是想知道为什么这不会重定向到任何地方。