Dreamweaver asp.net avec Access:
en fonction de ma recherche toutes les données s'affichent y compris les photos.
question:
je voudrais que ma base de données ouvrent automatiquent le fichier produit concerné dans la cellule PRODUITS. Comment faire?
merci de votre réponse.
(ma page résultats):
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="DataSet1"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connexion") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connexion") %>'
CommandText='<%# "SELECT fichesproduits, idproduits, images, PRODUITS FROM LOCATIONS WHERE PRODUITS LIKE ? ORDER BY PRODUITS ASC" %>'
Debug="true"
><Parameters>
<Parameter Name="@PRODUITS" Value='<%# "%" + (IIf((Request.Form("chercher") <> Nothing), Request.Form("chercher"), "")) + "%" %>' Type="WChar" /></Parameters></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
[ Lien ]">
<html xmlns="
[ Lien ]" xmlns:spry="
[ Lien ]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
<body>
<MM:If runat="server" Expression='<%# (DataSet1.RecordCount > 0) %>'>
<ContentsTemplate>
<table width="200" border="1">
<tr>
<td>N°</td>
<td>produits</td>
<td>fiches</td>
<td>images</td>
</tr>
<asp:Repeater runat="server" DataSource='<%# DataSet1.DefaultView %>'>
<itemtemplate>
<tr>
<td><%# DataSet1.FieldValue("idproduits", Container) %></td>
<td><a></a>
<%# DataSet1.FieldValue("PRODUITS", Container) %> ..................................................................................................................Access
<td><%# DataSet1.FieldValue("fichesproduits", Container) %>
<td><img src='images/<%# DataSet1.FieldValue("images", Container) %>' alt="" /></td>
</tr>
</itemtemplate>
</asp:Repeater>
</table>
</ContentsTemplate>
</MM:If>
<p>
</p>
<MM:If runat="server" Expression='<%# (DataSet1.RecordCount = 0) %>'>
<ContentsTemplate>
<p>votre demande n' pas pu aboutir. <a href="send.aspx">Une autre recherche?</a></p>
</ContentsTemplate>
</MM:If>
<p> </p>
</body>
</html>
david