Hello, i have a FormView connected to a EntityDataSource and i have the following code in my Itemtemplate:
Code:
<asp:ImageButton ID="IMG" runat="server" ImageUrl='<%# Bind("PictureUrl") %>'/>
<asp:ImageButton ID="Prev" runat="server" onclick="Prev_Click" ImageUrl='<%# Bind("PictureUrl") %>' />
<asp:ImageButton ID="Next" runat="server" onclick="Next_Click" ImageUrl='<%# Bind("PictureUrl") %>' />
I obviously want the previous and next image from my database aswell, how would i do that?
I can think of one way, to make a DataControl and a SourceControl for each image but that sounds very innefficient.
When i tried to change the ImageUrl with
vb.net in code behind i got errors about not being able to convert from a [system.string] to system.string.
There is probably a thousand ways (: