O
Ola Myrgart
Hi !
I wonder if there is a simple solution to how to dynamically view an
image from a SQL DB. It´s a binary file and the insertfunction into SQL
works fine. I can easily view all the text from the SQL DB. I can also
view the image separatly.
I load the text in a separate file : details.aspx
I load the image in another file : showpic.aspx
In the details.aspx file I put an <img> tag to the showpic.aspx as
follows:
<asp:Image id="Image" runat="server"
ImageUrl="showpic.aspx?id=22"></asp:Image>
In the above example the imagefile is static "id=22". How can I make it
dynamic so that the "id" changes when I click on details in the
Datagrid? How does the syntax look like ?
Help much needed !
OM "Myggan"
I wonder if there is a simple solution to how to dynamically view an
image from a SQL DB. It´s a binary file and the insertfunction into SQL
works fine. I can easily view all the text from the SQL DB. I can also
view the image separatly.
I load the text in a separate file : details.aspx
I load the image in another file : showpic.aspx
In the details.aspx file I put an <img> tag to the showpic.aspx as
follows:
<asp:Image id="Image" runat="server"
ImageUrl="showpic.aspx?id=22"></asp:Image>
In the above example the imagefile is static "id=22". How can I make it
dynamic so that the "id" changes when I click on details in the
Datagrid? How does the syntax look like ?
Help much needed !
OM "Myggan"