Results 1 to 3 of 3

Thread: how to show Image

  1. #1
    Member
    Join Date
    Dec 2011
    Posts
    15

    how to show Image

    In server side :
    Code:
    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 :
    Name:  Error.png
Views: 260
Size:  396 Bytes

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

  2. #2
    Ext.NET - Support Team Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    25,454
    Hi,

    Please edit the post wrapping the code in [CODE] tags, see:
    Forum Guidelines For Posting New Topics
    Daniil
    Ext.NET, Inc.
    Support Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | Twitter | Jobs

  3. #3
    Member
    Join Date
    Dec 2011
    Posts
    15
    I have get ,Just set url :

    Code:
    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