|
 |
asp_web_howto thread: Re: Server.Transfer
Message #1 by "Kevin Sproles" <jwr01@p...> on Thu, 19 Sep 2002 09:04:06
|
|
I'm having the same problem, it's driving me nuts trying to figure out
what's causing this error. 2 of my 3 pages use Server.Transfer just fine,
while one of my pages gives this error. Response.Redirect works in the
same spot, but I need to use Server.Transfer to keep the form variables.
Any help/advice would be greatly appreciated. Thanks!
> Hi,
>
> Can someone tell me why this code:
>
> if Request.form("Jump") <> "" then
> strJumpTo = Request.form("jump")
> Server.Transfer strJumpTo
> End if
>
>
> --------------------------
> causes this error?
>
>
> Server object error 'ASP 0230 : 80004005'
>
> Server.Transfer Error
>
> /index.asp, line 8
>
> The call to Server.Transfer failed while loading the page.
>
>
>
>
> It works fine on one page, (direct copy) but fails to work on the
other. I
> don't understand why it should fail.
>
> Regards,
> Craig
>
Message #2 by "TomMallard" <mallard@s...> on Thu, 19 Sep 2002 07:51:21 -0700
|
|
Did you try constraining it?
strJumpTo = CStr(Request.form("jump"))
If the form value was empty and it's not constrained it'll return null and
bomb...
tom mallard
seattle
-----Original Message-----
From: Kevin Sproles [mailto:jwr01@p...]
Sent: Thursday, September 19, 2002 9:04 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: Server.Transfer
I'm having the same problem, it's driving me nuts trying to figure out
what's causing this error. 2 of my 3 pages use Server.Transfer just fine,
while one of my pages gives this error. Response.Redirect works in the
same spot, but I need to use Server.Transfer to keep the form variables.
Any help/advice would be greatly appreciated. Thanks!
> Hi,
>
> Can someone tell me why this code:
>
> if Request.form("Jump") <> "" then
> strJumpTo = Request.form("jump")
> Server.Transfer strJumpTo
> End if
>
>
> --------------------------
> causes this error?
>
>
> Server object error 'ASP 0230 : 80004005'
>
> Server.Transfer Error
>
> /index.asp, line 8
>
> The call to Server.Transfer failed while loading the page.
>
>
>
>
> It works fine on one page, (direct copy) but fails to work on the
other. I
> don't understand why it should fail.
>
> Regards,
> Craig
>
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
|
|
 |