我怎麼能讓它,當我去(例如)http://localhost:60288/
它不顯示我的目錄列表,而是打開Index.aspx
頁面?這適用於http://localhost:60288/Index.aspx
,但我不希望每次都顯示Index.aspx
。asp.net應用程序的默認文件Index.aspx
我還需要像http://localhost:60288/?a=1
這樣的鏈接才能像http://localhost:60288/Index.aspx?a=1
那樣工作,而不顯示Index.aspx
。
這用於在Visual Studio中創建網站項目時工作,但現在我正在使用應用程序項目。我該如何設置?
我想要/需要此功能以適用於所有子文件夾以及http://localhost:60288/SubFolder/
應該工作,如果它是有聯繫的http://localhost:60288/SubFolder/Index.aspx
日Thnx
編輯仍然沒有管理它
開發服務器在這方面存在特定問題 - 我無法快速找到引用,或者我會添加答案。您需要測試IIS中的行爲。 – Murph 2009-11-15 11:11:18