Providing the path to an image stored on the server, not in the application files
- by twal
I need to display images on my ASP.NET MVC page that will be stored on the server
i have an apphelper class that I can use to provide the path
like this
public static class AppHelper
{
public static string ImageLowResPath(string imageName)
{
}
}
How can I get the file path that is stored on the c: drive of the server here?
In my view I will get the filepath like this
img src='<%=AppHelper.ImagelowResPath("10-1010.jpg") %'
Thank you