0

Hi,

Im using the following to generate full URL :

urlHelper.Action("Detail", "Ad", null, "http") + "?id=" + adId.ToString();

This will however return a localhost URL even when the webpage is placed on a public server (www.mywebpage.com)?

Im using ASP.NET MVC 2

BestRegards

Banshee
  • 15,376
  • 38
  • 128
  • 219
  • Try searching your codebase to see if you've got any references to your localhost URL lingering in config files, global.asax.cs, etc. – christofr Feb 02 '12 at 22:40

1 Answers1

0

This suddenly started to work, I dont know why it did not work at first.

Banshee
  • 15,376
  • 38
  • 128
  • 219