Reputation: 34523
An ASP.NET application sends letters in HTML format with links to external images. These images are placed in the same folder where the application is deployed. So before sending it modifies a letter template in such way what the links are correct.
Now I use
new UriBuilder(Request.Url.Scheme, Request.Url.Host,
Request.Url.Port, ResolveUrl("~")).ToString()
to get a path from where the application is run, but I want something more simple.
Some answers to this related question were useful, but I still hope for better solution.
Thank you!
Upvotes: 1
Views: 396