I'm trying to reference images in my webapp. I'm coming from j2ee and I
just write a small jsp scriplet that says to go grab the context path. How
do I do that with C#? If it's done differently in C#/.NET, please set me
straight (please be gentle :>).
If my current setup is this
+References
+Dilbert.jpg
Default.aspx
+Searching
+Default.aspx
In the /Searching/Default.aspx, I know I can reference the Dilbert.jpg image
using relative references
.../References/Dilbert.jpg
But how do I do it with absolute references? When I try this
/References/Dilbert.jpg
It is using the References as the webapp name. How can I pull the context
path (including port change if not default port 80)?
Thanks.