E
epigram
I've got an asp.net project where I have created a subfolder (for
organizational reasons) that contains several .aspx files. One thing I want
to be able to do in the codebehind for these files is redirect to an aspx
file in the root folder. The code that does this is actually in the base
class for all my codebehind files (a class that inherits from Page). So,
the redirect statement needs to work when the code executes for a page in
the root folder as well as in the subfolder. I tried to redirect using a
site-root relative path (e.g. Response.Redirect("/MyRootFile.aspx") ), but
when I try this I get a "Server Error in '/' Application" error. i.e. HTTP
404 for the requested Url: /MyRootFile.aspx.
Is there a way to do this? BTW, I'm running this application from within
Visual Studio on a XP Pro PC.
Thanks!
organizational reasons) that contains several .aspx files. One thing I want
to be able to do in the codebehind for these files is redirect to an aspx
file in the root folder. The code that does this is actually in the base
class for all my codebehind files (a class that inherits from Page). So,
the redirect statement needs to work when the code executes for a page in
the root folder as well as in the subfolder. I tried to redirect using a
site-root relative path (e.g. Response.Redirect("/MyRootFile.aspx") ), but
when I try this I get a "Server Error in '/' Application" error. i.e. HTTP
404 for the requested Url: /MyRootFile.aspx.
Is there a way to do this? BTW, I'm running this application from within
Visual Studio on a XP Pro PC.
Thanks!