Imagebutton: how to load images from embedded resource

P

Ping Xie

We are implementing custom imagebuttons by inheriting .Net ImageButton. In
order to "brand" the applications that use our buttons, a set of standard
images are provided to the buttons and the ImageUrl property is hidden by our
button classes. Our image buttons will be deployed as an assembly (dll). We
would like to include the images as embeded resources of the assembly. Now I
don't know how to set the ImageUrl to load the images from the embeded
resource. It seems ImageUrl only takes the path to the Web application. Does
any one know how to do it?

Thank you for your help in advance.

Ping
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top