EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
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: 287
Size:  396 Bytes

    Please help me!
    Last edited by Daniil; Jan 30, 2012 at 10: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
    27,815
    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 10: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, 8: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, 11:02 PM
  3. Replies: 1
    Last Post: May 10, 2012, 9:56 PM
  4. how to show image
    By harshad.jadhav in forum 1.x Help
    Replies: 1
    Last Post: Jul 19, 2010, 7:26 PM
  5. show a blob image in gridpanel
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jul 22, 2009, 4:12 PM

Posting Permissions