开发者

very strange situation when i make aspx page inside a folder a default document

开发者 https://www.devze.com 2023-01-22 20:26 出处:网络
i have the structure of the web开发者_高级运维site all pages in folders --- home [directory] ------------------------- home.aspx

i have the structure of the web开发者_高级运维site all pages in folders

--- home [directory]

------------------------- home.aspx

------------------------- anything.aspx

------------------------- another.aspx

--- content [directory]

--- users [directory]

. . . etc

so if i make the default document for this site home/home.aspx

any code inside home.aspx will not execute if i redirect to any other page it does not understand hierarchy of folders i dont know why and will go to

home.aspx on the root which is not exist

so it give an error not found

because no home.aspx on the root


Try these:

Change the directory name from "Home" to "HomeXYZ"

When redirecting, use "../home.aspx"

0

精彩评论

暂无评论...
验证码 换一张
取 消