displaying image in gridview column
<p>I have image in the image folder and in my oracle database I have a column with the name IMG which has the name of</p>

<p>the image like  ab.jpg</p>

<p>I have another column with name IMG1 which is storing the whole url  like  images/ab.jpg</p>

<p>I can see all the values of my database table in my dataset as well including IMG column and IMG1 column</p>

<p>In my aspx file I wrote code</p>

<p></p>

<p>but it is not displaying anything, however aspx page is working fine, it is showing a field but no image and it is blank, same is</p>

<p>the case with IMG1 column as well</p>

<p>Why is it so?  What is wrong that I am doing?</p>

<p>I dont want to store image in database, so i store it in the folder</p>

<p>What method should i adopt to make it work?</p>

<p><strong>Update</strong></p>

<p>thats my code</p>

<pre><code>&lt;Columns&gt;
&lt;asp:BoundField DataField= "DD" HtmlEncode="false" HeaderStyle-BorderColor="green" 
                HeaderStyle-Font-Bold="true" HeaderStyle-Font-Names="Arial" 
                HeaderStyle-Width="100%" HeaderStyle-Wrap="true" HeaderText="HEAD" 
                ItemStyle-Width="100%" &gt;
                &lt;ItemStyle BorderColor="green" HorizontalAlign="Center" Wrap="true" /&gt;
            &lt;/asp:BoundField&gt;

&lt;asp:TemplateField&gt;
      &lt;ItemTemplate&gt;
        &lt;asp:Image ID="Image1" ImageUrl="~/images/ab.jpg" runat="server" /&gt;
      &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;

&lt;asp:BoundField DataField="CC" HeaderText="SHEET" /&gt;

 &lt;/Columns&gt;
</code></pre>

<p>If I look at design section it is giving me  image sign with a cross but not showing the actual image</p>

<p>location of image is</p>

<p>I have folder A and there I have sub folder images and mywebpage
so both mywebpage and images folder is in folder A</p>

<p>I have used paths as ~/images/ab.jpg and ~A/images/ab.jpg and in both cases it does not work</p>

<p>Method below does not work either</p>

<p></p>

<p>Using Oracle database, which is showing image url columns on dataset and even on grid as mentioned in my last post</p>

<p>What wrong am I doing?</p>

<p>Any solution?</p>
