I have a gridview (grdPics) created with 1 Imagefiled (picname) which contains the URL to where the image is stored.
asp code...
Expand|Select|Wrap|Line Numbers
- <asp:GridView ID="grdPics" runat="server" Height="136px" Style="z-index: 133; left: 32px;
- position: absolute; top: 600px" Width="464px" AutoGenerateColumns="False">
- <Columns>
- <asp:ImageField DataImageUrlField="picname">
- </asp:ImageField>
- </Columns>
- </asp:GridView>
Expand|Select|Wrap|Line Numbers
- sql = ("SELECT RTrim(qpicname) as picname FROM MYFILE where quote# = '" & strQuote & "'")
- cmd = New iDB2Command(sql, cn)
- da.SelectCommand = cmd
- da.Fill(ds, "Pics")
- grdPics.DataSource = ds
- grdPics.DataMember = "Pics"
- grdPics.DataBind()
Things I've checked...
- Picture does exist in the folder where the URL is pointing
- SQL command is correct and does bring back the data expected.
What else did I miss??? I'm sure it's something simple.
Any Help would be appreciated.