Server.Transfer error

G

GaryB

I have the following Response.Redirect that works just fine:

Response.Redirect("../CrystalViewer.aspx?id=" & CrystalFileName)

I changed it to a Server.Transfer like so:

Server.Transfer("../CrystalViewer.aspx?id=" & CrystalFileName)

Now it blows with the following error:

Invalid path for child request
'../CrystalViewer.aspx?id=c:\temp\ReportToPrint.xml'. A virtual path is
expected.

I thought that was a virtual path. How can I make this work with
Server.Transfer?
Thanks
Gary
 
P

Patrice

If I remember it uses just the filename. You can't pass something on the
QueryString as you don't issue a new HTTP request...

Patirce
 
G

GaryB

Uh, right. I'm trying to pass a querystring when there is no request. duh.
thanks :)
Gary
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,701
Latest member
XavierQ83

Latest Threads

Top