Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8610983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:15:31+00:00 2026-06-12T04:15:31+00:00

I didn’t have much luck finding out much about this one… I have an

  • 0

I didn’t have much luck finding out much about this one…

I have an ASP page that is called from code somewhere else with a query string:

[domainpath]/FulfilmentReceipt.aspx?fulfilmentId=226F7486-3D30-439D-92BB-94972234A809

In the Page_Load there’s a Server.Transfer call that should move the response execution to another page with a different query string (the Format() below appears to work fine BTW):

Server.Transfer(String.Format("confirmationReceipt.aspx?bId={0}&f={1}&print=true", basketId, franchiseeId)))

The bit I don’t understand comes next. The transfer call appears to get routed back to FulfilmentReceipt.aspx, the first page, but with the new query string. This then causes an error as the fulfilmentId part of the query string is now missing. Why does this not call into confirmationReceipt as expected?

I can confirm that confirmationReceipt page is never called by debugging into the process and that fulfilmentReceipt is loaded twice. There is no code at all in the Global.asax file so no routing there and the confirmationReceipt page itself has no Redirect or Transfer calls and is pretty simple.

Additionally the error page rendered in the browser’s address bar shows the new query string but as part of the orginal URL. I had thought that the URL seen should not alter as a result of Server.Transfer.

Any ideas?

Many thanks.

UPDATE

I haven’t made any real progress but following Richthofen’s advice gave a result of sorts. Using Response.Redirect instead of Server.Transfer DOES give the desired result when the call is from a browser. But the call is made by a third party library that cannot handle the redirect response.

Trying Server.Transfer with the preserveForm option makes no difference. To clarify, the transfer ends up calling FulfilmentReceipt.aspx?bId={0}&f={1}&print=true. Wrong page, right query string.

MORE UPDATE

I have solved my problem by refactoring the confirmationReceipt page to accept the query string passed to fulfilmentReceipt and changing the Server.Transfer call to simply transfer to confirmationReceipt without specifying a query string. The transfer than goes to the right place with the original query string.

The question still stands though out of curiosity. Is it simply that Server.Transfer cannot deal with urls containing query strings correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:15:32+00:00Added an answer on June 12, 2026 at 4:15 am

    As originally posted as an update above I solved my problem by refactoring the confirmationReceipt page to accept the query string passed to fulfilmentReceipt and changing the Server.Transfer call to simply transfer to confirmationReceipt without specifying a query string. The transfer than goes to the right place with the original query string.

    It’s not ideal as some of the processing is now done twice (converting the query string into something more useful) but it works so I’m happy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I didn't face this error before. I have a database db , that contains
I didn't find much in tutorials on this specific question.. So I have a
Didn't know how else to put this. Say I have a JavaScript method that
I didn't expect this is that complex. But I can't figure out how I
Didn't got any luck finding an answer on google , so this is my
Didn't find any from their website. I mostly just trying to see which one
(Didn't mean to create a new question, but revised the old one enough that
I didn't find an answer on the net and i hope this question have
Didn't have this issue at all until I began adapting my app for iOS
This didn't work: Setting the umask of the Apache user Arch doesn't have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.