Thanks Peter I greatly appreciate your assistance
This works fine to pop up the image in a blank window.
How do I display The selected image in the New page . . . ???
like this?
<%@ Page Language="
VB" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<html>
<head>
<title>thumbnails from access database</title>
</head>
<script language="
VB" Debug="true" runat="server">
Sub Page_Load(src As Object, e As EventArgs)
If Not IsPostBack Then
bindListControl
End If
If IsPostBack Then
Response.redirect("image_display.aspx")
End If
End Sub
Sub display_image(src As Object, e As EventArgs)
If Not IsPostBack Then
bindListControl
End If
End Sub
Sub bindListControl()
Dim myConn As OleDbConnection
Dim myOleDbAdapter As OleDbDataAdapter
Dim connStr, sqlStr As String
Dim myDataSet As New Dataset
connStr="Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\BegASPNETdb\datastores\Images\images.mdb ;"
sqlStr="SELECT ImagePath, display_order_number " _
+ "FROM images_table WHERE visible =true ORDER BY display_order_number"
myConn= New OleDbConnection(connStr)
myConn.Open()
myOleDbAdapter =New OleDbDataAdapter(sqlStr,myConn)
myOleDbAdapter.Fill(myDataSet,"ImagePath")
dataList1.DataSource=myDataSet.Tables("ImagePath")
dataList1.DataBind()
End Sub
</script>
<body bgcolor="white">
<form runat="server">
<asp:DataList id="dataList1" border=0
RepeatDirection="Horizontal" RepeatColumns="3" runat="server">
<ItemTemplate><table><tr>
<td>
<asp:hyperlink ID="ImageID" runat="server" navigateurl='image_display.aspx'><img src='<%# Container.DataItem("ImagePath") %>' height=100 width=75 /></asp:hyperlink>
<td>
<%# Container.DataItem("display_order_number") %>
<td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</form>
</body>
</html>
and then what would the code be for the new page Image_display.aspx to show the selected image in the correct place ?