0

I'm trying to send ampersand as a value of one of the url parameter but without any success.

Response.Redirect(String.Format("WebForm.aspx?P1=&P2=&P3="));

E.g. "WebForm.aspx?P1=John&P2=Smith&P3=Del&Company" returns John Smith Del. So everything after ampersand as a value in url is trimmed.

Is there any trick how to handle this issue.

Note: The url is feeded by parameters from somewhere else.

martinkabe
  • 999
  • 2
  • 11
  • 22
  • User [Server.URLEncode](https://msdn.microsoft.com/en-us/library/ms525738(v=vs.90).aspx) before sending values in URL. – शेखर Jun 14 '17 at 13:13

1 Answers1

0

Have you tried to replace the & with &?

How can I add an ampersand for a value in a ASP.net/C# app config file value