Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Imagebutton: how to load images from embedded resource

Thread Tools

Imagebutton: how to load images from embedded resource

Ping Xie
Posts: n/a
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.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
Resource manager problem: naming for embedded resource. Dirc Khan-Evans ASP .Net 1 10-17-2005 12:52 PM
How to display images embedded in e-mail as embedded, not attachments Jim Firefox 4 12-11-2004 05:36 AM
The system cannot locate the resource specified. Error processing resource avishosh XML 2 08-08-2004 06:28 AM