Server.Transfer error

  • Thread starter Thread starter GaryB
  • Start date Start date
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
 
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
 

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