In C # MVC4 how to get the server path. for example: http://192.169.1.120:60632
Is there a helper function that can convert something like ~/aFolder/file.htm to an absolute path? Ideally, I would like to use any url and convert it to a complete absolute url. For instance. can handle ..
And it will work anywhere inside the C # code, that is, in the action controller, in the signalR concentrator, model, etc.
And it will work when I deploy to a remote server.
source share