The Ext.NET team is thrilled to announce the official release of Ext.NET 4, including the new Spreadsheet Selection Model, Triton Theme and Advanced Color Picker!

how to show Image

  1. #1

    how to show Image

    In server side :
    Ext.Net.Image lv_ImageView = new Ext.Net.Image();
                        lv_ImageView.X = 300;
                        lv_ImageView.Y = 300;                    
                        lv_ImageView.ResizeConfig.EnabledResizing = true;
                        lv_ImageView.ResizeConfig.PreserveRatio = false;
                        lv_ImageView.ImageUrl ="~/ImageFiles/Error.jpg" ;
                        lv_Container.Items.Add(lv_ImageView);
    But ,the result is :
    Click image for larger version. 

Name:	Error.png 
Views:	300 
Size:	396 Bytes 
ID:	3781

    Please help me!
    Last edited by Daniil; Jan 30, 2012 at 9:53 AM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    Please edit the post wrapping the code in [CODE] tags, see:
    Forum Guidelines For Posting New Topics
    Daniil Veriga
    Developer & Support Expert
  3. #3
    I have get ,Just set url :

    lv_ImageView.ImageUrl ="./ImageFiles/Error.jpg" ;
    "./" not "~/"
    Last edited by Daniil; Jan 30, 2012 at 9:54 AM. Reason: Please use [CODE] tags

Similar Threads

  1. Show/Hide Image Command from Code behind
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 2
    Last Post: Nov 26, 2013, 7:22 PM
  2. upload an image and show it on page
    By Fabrizio in forum 1.x Help
    Replies: 3
    Last Post: Jun 16, 2012, 10:02 PM
  3. Replies: 1
    Last Post: May 10, 2012, 8:56 PM
  4. how to show image
    By harshad.jadhav in forum 1.x Help
    Replies: 1
    Last Post: Jul 19, 2010, 6:26 PM
  5. show a blob image in gridpanel
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2009, 3:12 PM

Posting Permissions

Subscribe now to get the latest Ext.NET happenings in our newsletter.