M
Magnusb
I have developed a small (composite) custom control. One of the child
controls (and the only one visible) is an asp:image. I have embedded the
image as a resource in the Custom Control dll. At runtime I set the
ImageUrl in onLoad using "Page.ClientScript.GetWebResourceUrl"
This works fine but the image will not display when in the designer. if
I hard code the ImageUrl pointing to the image which I also have in my
web site project it will show correctly in designer. But this is of
course no a good design because it will not display the icon (at design
time) if the file structure is changed.
How can I use the embedded image at design time?
This is VS 2008.
I create the Controls I use in my control in CreateChildControls().
Thank you
controls (and the only one visible) is an asp:image. I have embedded the
image as a resource in the Custom Control dll. At runtime I set the
ImageUrl in onLoad using "Page.ClientScript.GetWebResourceUrl"
This works fine but the image will not display when in the designer. if
I hard code the ImageUrl pointing to the image which I also have in my
web site project it will show correctly in designer. But this is of
course no a good design because it will not display the icon (at design
time) if the file structure is changed.
How can I use the embedded image at design time?
This is VS 2008.
I create the Controls I use in my control in CreateChildControls().
Thank you