How to Server.Transfer from a standalone page?
问题 I have a page in a folder on a site, and I want to Server.Transfer to it from the domain root. I tried adding a page to the root containing: Server.Transfer("~/folder1/default.aspx"); But I get a 500 error. I also tried Server.Transfer("/folder1/default.aspx"); With the same result. But when I tried Server.Transfer("default2.aspx"); - another page in the root, it worked. So how do I transfer to the page I want to transfer to? EDIT: folder1 is a web application (Asp.net) - does it matter? 回答1: