Imagebutton: how to load images from embedded resource

Discussion in 'ASP .Net Web Controls' started by Ping Xie, Jul 5, 2007.

  1. Ping Xie

    Ping Xie Guest

    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
     
    Ping Xie, Jul 5, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. LidorP
    Replies:
    1
    Views:
    2,163
    Scott M.
    Nov 22, 2003
  2. Dirc Khan-Evans
    Replies:
    1
    Views:
    933
    Karl Seguin
    Oct 17, 2005
  3. avishosh
    Replies:
    2
    Views:
    10,702
    avishosh
    Aug 8, 2004
  4. Heinrich Moser
    Replies:
    1
    Views:
    477
    Heinrich Moser
    Mar 27, 2008
  5. ~~~ .NET Ed ~~~

    An ImageButton that retrieves its image from a Resource

    ~~~ .NET Ed ~~~, Apr 2, 2005, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    447
    Robert Rae
    Jun 22, 2005
Loading...

Share This Page