Can I Server.Transfer from .aspx to .asp page?

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

Hi

Right now, when i call :

Server.Transfer( "default.asp" );

I get

System.Web.HttpException: Error executing child request for /SessionBridgeTest/Default.asp.

Is it possible at all to do so, or am I just doing something wrong?

Simon
 
did you try a response.redirect...
there is a difference between the two, which is fairly important, and sadly
i cant recall exactly how that goes. but it has to do with transfering data
(server.TRANSFER) so i would assume its trying to hand off the session state
to the asp page which cant handle it. a response.redirect just dumps the
data and goes to the new page which i think is your only option.

justin
 
simon said:
Hi

Right now, when i call :

Server.Transfer( "default.asp" );

I get

System.Web.HttpException: Error executing child request for
/SessionBridgeTest/Default.asp.
Is it possible at all to do so, or am I just doing something wrong?

Simon

Server.Transfer operates within the asp.net system, so it can't transfer to
an "old" asp file.

Response.Redirect sends a message back to the browser to "go elsewhere".
The "elsewhere" can be anything (even on another server), it's a completely new request.

Hans Kesting
 
No, they are different applications so that won't work.
You might try Response.Redirect instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top