"Drew" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I have a server.transfer question. I have a page that
utilizes the server.transfer method. On the page that is
transfered to - lets say page 2, I want to do another
server.transfer. This gives me the error:
System.InvalidCastException: Specified cast is not valid.
It doesn't sound like a Server.Transfer problem so much as a type conversion
issue. By the way, I can conceive of no well-designed scenario where you
would actually want to do this. Server.Transfer should not be used to break
up code or control program flow - a terribly expensive way to do things. If
you need less code in your classes, then you should either use regions, or
abstract some of the code out to other classes.
R/