Response.redirect or Server.Transfer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Ok I am going a bit insane here.

I have written a class which handles redirects to certain pages according to
database settings. When I use the response.redirect from within my class I
get this error message

Server Error in '/Application' Application
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make sure that
it is spelled correctly.

I have checked the path and it seams fine. What gets me is that if I put
the page in the same directory structure it works fine. So my default.aspx
and login.aspx pages are in the same dir then works. But if I put my
login.aspx page within a seperate directory (eg pages/login.aspx) then I get
this error.

Anybody seen this before?

Thanks

Gav
 
Your message tells me that you think you are doing this correctly. It
appears from your description that you are doing things correctly. However,
you didn't post any code, so there is no way for me to tell what you are
doing wrong...

please post code

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top