Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have done payment integration with my website.
For the return url notyfication i have define address in web config with http://localhost: ...
but this will not work as the server changes ...
so please tell me that can i set something in web config to resolve path.
i can get server name in .cs file but i want to set this in web config..

Thanks in Advance
Posted

1 solution

If you are talking of single server than use that servername with expected url structure in your config file.

If you are saying that the server can change for requests at time then you need to define the structure of the url in config and form/modify the url in config to current server ones based on the response url.

So in either situation, define the URL structre expected. Hardcode the server name if its one and set it runtime if more than one.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900