Thanks for your reply, I´m not quite sure, I´m new in asp.net, but
perhaps I have not been clear.
This is how the IIS lookslike
LocalMachine
---WebsiteA (localhost:5080)
---WebsiteB(localhost:80)
The WebsiteB has been registered by DNS so you can access from remote
computers, but what I want is to redirect to WebsiteA when you click in
a webform of site B. As I said it works with
Response.Redirect(
http://localhost:5080), but only locally, if you try
the same from the outside it treats "localhost" as a local variable,
and perhaps the correct way for doing this is using Server.Transfer,
but it doesn´t work anymore.
Thanks again for your attention.
Gozirra wrote:
Maybe I'm confused. But if you want to go from site A to site B, why
not just use the proper URL. Assume Site A is @ http://webserver:80
and site B is @ http://webserver:5080.
To go to B - Response.Redirect("http://servername:5080")
To go to A - Response.Redirect("http://servername:80")
If you are worrying about these values changing then toss them into the
config file. Then you can deploy a production version and have one for
testing.