views:

206

answers:

1

Hi i have stored the images in mysql using the varchar datatype and i am storing the path of that and i want to retrive that images in the gridview of asp.net

+1  A: 

You can use an ImageField, like this:

<asp:GridView ID="GridView1" Runat="server" 
  DataSource='<%# GetData() %>' AutoGenerateColumns="False">
    <Columns>
        <asp:ImageField DataImageUrlField="PictureURL"></asp:ImageField>
    </Columns>
</asp:GridView>
Steven
It's not working
Khilen
in this way it should work. how is your code
drorhan