S
Shawn B.
Greetings,
I'm creating a custom server control. In the design-time experience, I'd
like to render an image where the control is placed. I have an /images
folder in my website.
The problem is, when I render the <img src=... tag during the design-time
experience, nothing displays. When I run the web, it works fine. I've even
try hardcoding the URL (based on an IIS path), and that doesn't work either.
My question is simple: how do I reference a root relative URL during
designtime in a custom server control? Page.MapPath throws a null reference
exception. Perhaps theres something else I can use?
Thanks,
Shawn
I'm creating a custom server control. In the design-time experience, I'd
like to render an image where the control is placed. I have an /images
folder in my website.
The problem is, when I render the <img src=... tag during the design-time
experience, nothing displays. When I run the web, it works fine. I've even
try hardcoding the URL (based on an IIS path), and that doesn't work either.
My question is simple: how do I reference a root relative URL during
designtime in a custom server control? Page.MapPath throws a null reference
exception. Perhaps theres something else I can use?
Thanks,
Shawn