Link to home
Start Free TrialLog in
Avatar of lateapex
lateapex

asked on

Server.MapPath

I've got a MVC project with a view under: Views>MyStuff>myPage.aspx

I know how to use jquery and the Controller to pass the path into the src of an img tag.

I want to load an image from a folder in the root directory (mydomain/myImages). How to I get the path to the image using Server.MapPath?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial