Forum Moderators: open
<asp:GridView ID="gvbase" runat="server" AutoGenerateColumns="False" Width="100%" BorderWidth="0">
<Columns>
<asp:TemplateField HeaderText="Computer Books on Sale">
<ItemTemplate>
<table>
<tr>
<td>
<asp:Image ID="boxshot" runat="server" ImageUrl='<%# Bind("FP_image") %>' />
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="righttitle" runat="server" Text='<%# Bind("FP_title") %>' NavigateUrl='<%# Bind("FP_linkurl") %>'>
</asp:HyperLink>
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="rightauthor" runat="server" Text='<%# Bind("FP_author") %>' NavigateUrl='<%# Bind("FP_linkurl") %>' >
</asp:HyperLink>
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="rightprice" runat="server" Text='<%# Bind("FP_price") %>' NavigateUrl='<%# Bind("FP_linkurl") %>'>
</asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Which takes an image and 3 pieces of text from another file (will eventually take it from a database) and results in the layout for a boxshot and product info. But when i put the info for the variables into the array list:
arlbase.Clear()
arlbase.Add(New clbooklayout("Book 1", "Author A", "€0.00", "image1.jpg", "http://www.example.com", ""))
arlbase.Add(New clbooklayout("Book 2", "Author B", "€0.00", "images2.jpg", "http://www.example.com", ""))
arlbase.Add(New clbooklayout("Book 3 ", "Author C", "€0.00", "image3.jpg", "http://www.example.com", ""))
gvbase.DataSource = arlbase
gvbase.DataBind()