In a button click event....
Response.Redirect("../default.aspx");
This is on a user control inside the include folder.
Works ok for any page that is also in a folder.
But, go to the root, it wants to go outside the Virtual Directory into the wwwroot folder to another default page. This is on my dev pc.
Now, if I upload it to the server, it works ok again.
I can use a simple hyperlink and it never goes outside the virtual directory.
I can use a Request.Url and do some string manipulation but that seems not good enough.
I ran into this a few years ago and simply used 2 navigation user controls - one for folder pages and one for root pages. But this new site I need to use just one.