I am creating a payment gateway test project
and and all works fine for testing and after final step when the success of the transaction is to be displayed to customer : the page has url like this
http://www.mywebsite.com/gateway/finalStatus.aspx?Result=Success&Amount=12345<!DOCTYPE html PUBLIC
Notice <!DOCTYPE html PUBLIC at the end
i use following syntax to redirect:
Response.Redirect("REDIRECT=http://www.mywebsite.com/gateway/finalStatus.aspx?Result="+Result+"&Amount="+Amount)
This is what the gateway people has suggested its mandatory to use “REDIRECT” before http
What could be reason and what is solution for this?
EDIT :
Sorry the syntax is like this:
Response.Write("REDIRECT=http://www.mywebsite.com/gateway/finalStatus.aspx?Result="+Result+"&Amount="+Amount)
and not Response.Redirect
Sorry for the mistake.
Now the problem is same. Any Help?
GOt the solution:
on the page where i was was writing
Response.Write,Remove the Following line:
or similar lines.
For ex: if
Response.Write wasonabc.aspxthen remove the above mentioned line fromabc.aspxThis solves the problem.