Get image URL from Access database and display in gridview
Posted on 2006-04-01
Probably pretty basic but I'm just learning...
Using Visual Studio 2005, Visual Basic, Access Database.
What I would like to do is change the ProductImage part. In my database, I have the names of the images: image1.gif, image2.gif, etc. I'd like to have the ProductImage get the URL in the form of images/image1.gif.
I built a gridview based on dataset that results in this:
<asp:BoundField DataField="CategoryID" HeaderText="CategoryID" SortExpression="CategoryID" />
<asp:BoundField DataField="ModelNumber" HeaderText="ModelNumber" SortExpression="ModelNumber" />
<asp:BoundField DataField="ModelName" HeaderText="ModelName" SortExpression="ModelName" />
<asp:BoundField DataField="UnitCost" HeaderText="UnitCost" SortExpression="UnitCost" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
<asp:BoundField DataField="ProductImage" HeaderText="ProductImage" SortExpression="ProductImage" />
Is that clear enough? Can anyone help? Like I said, I'm just learning so if your answer requires any kind of function stuff you'll have to tell me where it goes and how to use it. 500 points because I'm completely stoopid and need step-by-step instructions.