473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

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
Nov 19 '05 #1
4 1928
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" <si****@poczta.onet.pl> wrote in message
news:d8**********@news.onet.pl...
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

Nov 19 '05 #2
Thats true justin
ASPX and ASP can't share sessions.
Patrick

"Justin Rich" <jr******@yahoo.spam> wrote in message
news:#f**************@TK2MSFTNGP15.phx.gbl...
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" <si****@poczta.onet.pl> wrote in message
news:d8**********@news.onet.pl...
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


Nov 19 '05 #3
simon wrote:
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
Nov 19 '05 #4
No, they are different applications so that won't work.
You might try Response.Redirect instead.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"simon" <si****@poczta.onet.pl> wrote in message
news:d8**********@news.onet.pl...
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

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user...
4
by: Bob H | last post by:
Hi, I'm aware of the different ways to pass variables between ASP.Net pages. For pages that need to pass a variable, we're using the server.transfer method. For others, we're using...
1
by: Terry Mulvany | last post by:
Grettings, Normally I can use Request.RawUrl to get the 'current' page (amongst many other things). But in the case of using a Server.Transfer but the path from the root of the site . So if...
2
by: Pete | last post by:
Hi all... I sincerly hope one of the MS guys can clear this up for me... First some background... Ok, I have a web site which is fully translatable into several languages. All the strings...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
8
by: p3t3r | last post by:
I am using .NET2 and have a number of aspx pages. On each page is a LinkButton that performs a server.transfer() to another page. If we use page names A,B,C,D,E as an example. I start on page A...
3
by: Peter Nofelt | last post by:
On Server.Transfer(), is there a reason why the previous page's elements would appear on the new page? Note: this transfer is occuring between two pages on the same server. <Scenario> I'm using...
4
by: evantay | last post by:
I'm using ASP.NET 2.0 with VS.NET 2005. I'm trying to access properties from my master pages within a page that inherits from that master page (a child page). However the values are always null....
3
by: jasonheath.net | last post by:
I apologize in advance for the length of this post. I wanted to get as much detail as possible in here. We have 1 web app that contains the functionality to do some single sign-on logic. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.