Forums

Problem with displaying Image at ASPxCallbackPanel Example

Last post 12/8/2008 1:26 PM by Brien King. 3 replies.
Sort Posts: Previous Next
  • ioannis giannis

    Problem with displaying Image at ASPxCallbackPanel Example

    12/8/2008 6:21 AM
    • Not Ranked
    • Joined on 11/13/2008
    • Posts 14

    Hello DevExpressers,

    I am running the CallbackPanel Example for my own project. The only difference between my project and your example is that the field "Photo" of the table "Employees" of my database is a text representing the path of the image, and not a binary field like your example.

    I tryed to use ASPxImage insteed of ASPxBinaryImage:

    <dxe:ASPxImage id="ASPxImage1" runat="server" ImageUrl='<%#Eval("Photo") %>'></dxe:ASPxImage>

    but it doesnt work. There is nothing wrong with the Image.

    Can you help me please ?

    Thank you for your support.

  • Brien King

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    12/8/2008 7:11 AM
    • Top 100 Contributor
    • Joined on 5/4/2007
    • Posts 253
    That should work depending on what the value of PHOTO is in the database.

    What exactly is the issue?

    Is it not display the correct image, or no image at all?

    When you view the source of the page, is the URL correct? but the image doesn't
    get displayed?



    Brien King
    President, ClassicSoft, LLC
    http://www.classicsoft.com
    brien@classicsoft.com
    Developers Helping Developers!

    ig> Hello DevExpressers,
    ig>
    ig> I am running the CallbackPanel Example for my own project. The only
    ig> difference between my project and your example is that the field
    ig> "Photo" of the table "Employees" of my database is a text
    ig> representing the path of the image, and not a binary field like your
    ig> example.
    ig>
    ig> I tryed to use ASPxImage insteed of ASPxBinaryImage:
    ig>
    ig>
    ig> ImageUrl=''>
    ig>
    ig> but it doesnt work. There is nothing wrong with the Image.
    ig>
    ig> Can you help me please ?
    ig>
    ig> Thank you for your support.
    ig>
  • ioannis giannis

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    12/8/2008 8:54 AM
    • Not Ranked
    • Joined on 11/13/2008
    • Posts 14

    Brien,

    the issue is that it doesnt displays no image at all.

    it is strange, because if i insert the original filename of one photo in the code, for example:

    <dxe:ASPxImage id="ASPxImage1" runat="server" ImageUrl='~/img/George.jpg'></dxe:ASPxImage>

    the browser displays the picture perfect.

    Also when i view the source of the page the URL aint right. I see something like that:

    <img src="/MyProject/WebResource.axd?d=B8E5QXw3GsnbLYkucwJE24IO_dQ_G-twkb3ZXffZWoqc-2O4ht2Da46swhRypCeKpyicb31DGac4OEkNNlr0U86VakCebFm2HeQFJwSb4G81&amp;t=633634760560000000" />

    Thank you for your interest Brien Smile

  • Brien King

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    12/8/2008 1:26 PM
    • Top 100 Contributor
    • Joined on 5/4/2007
    • Posts 253
    odd. You need to check your datasource and make sure you have the values
    you are expecting. I am assuming that PHOTO in the database is a URL and
    not the acutal photo.

    Is the Image in a Grid or by itself? If it's in a grid, are you using a
    template?


    Brien King
    President, ClassicSoft, LLC
    http://www.classicsoft.com
    brien@classicsoft.com
    Developers Helping Developers!

    ig> Brien,
    ig>
    ig> the issue is that it doesnt displays no image at all.
    ig>
    ig> it is strange, because if i insert the original filename of one
    ig> photo in the code, for example:
    ig>
    ig>
    ig> ImageUrl='~/img/George.jpg'>
    ig>
    ig> the browser displays the picture perfect.
    ig>
    ig> Also when i view the source of the page the URL aint right. I see
    ig> something like that:
    ig>
    ig>
    ig> src="/MyProject/WebResource.axd?d=B8E5QXw3GsnbLYkucwJE24IO_dQ_G-twkb
    ig> 3ZXffZWoqc-2O4ht2Da46swhRypCeKpyicb31DGac4OEkNNlr0U86VakCebFm2HeQFJw
    ig> Sb4G81&amp;t=633634760560000000" />
    ig>
    ig> Thank you for your interest Brien
    ig>
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.