Search code examples
c#asp.netserver.transfer

Passing parameters using Server.Transfer but not using query string


I have a registration form and want to transfer the user to the success page, telling him that an email was sent to his email. I need to transfer his email from the register page to the success page.

I found about Server.Transfer, but I can't find out how to send parameters. I don't want to use query string as I don't like revealing information in the URL.

What is the proper way (if possible) to do this?


Solution

  • When you using server transfer you just move execution to different server handler , user will no see the new url or the parameters so it safe to make this transfer.