in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

Problem with displaying Image at ASPxCallbackPanel Example

Last post 12/8/2008 1:26 PM by Brien King. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12/8/2008 6:21 AM

    Problem with displaying Image at ASPxCallbackPanel Example

    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.

  • 12/8/2008 7:11 AM In reply to

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    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>
  • 12/8/2008 8:54 AM In reply to

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    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

  • 12/8/2008 1:26 PM In reply to

    Re: Problem with displaying Image at ASPxCallbackPanel Example

    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>
Page 1 of 1 (4 items)
Copyright © 1998-2009 Developer Express Inc.
ALL RIGHTS RESERVED