On Sat, 18 Mar 2006 00:26:27 -0800, Shawn B. wrote:
Quote:
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? |
I had an check if is designtime (is Site assigned) and if assigned then I
copied image in temp directory and set this new filename to ImageUrl (my
component inherits from WebControls.Image)
But my control used images from stream, I really don't know how will you
know *where* your pictures are.
btw. if it helps here is the link to my stream image component, source
included.
http://www.antoniob.com/projects/PStreamImage.aspx
beware: Delphi.NET and framework 1.x !!
--
http://www.antoniob.com/
remove antispam XremoveX from e-mail !