Bonjour
j’ai pas pu insérer un lien hypertexte sur le champ d’un résultat d’une requête lancé par une page aspx, sachant que le lien change avec les autres paramètres
Mon code est le suivant
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="C#" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sans titre 1</title>
<link rel="stylesheet" type="text/css" href="../CSS/default.css" />
<style type="text/css">
.style1 {
text-align: center;
}
.style7 {
text-align: right;
font-family: Tahoma;
font-size: medium;
}
.style6 {
font-family: Wingdings;
font-size: xx-large;
color: #0000FF;
}
.style8 {
text-decoration: none;
}
.style10 {
border-style: solid;
border-width: 1px;
background-color: #000000;
}
.style11 {
border: 2px solid #000080;
}
.style12 {
text-align: center;
color: #FFFF00;
}
.style13 {
background-color: #000000;
}
.style14 {
text-align: center;
color: #FFFF00;
font-size: large;
}
</style>
</head>
<body>
<form id="searchAnnuaireSEFP" runat="server">
<table style="width: 611px" align="center" class="style10">
<tr>
<td style="width: 292px" class="style12"><strong>Ville</strong></td>
<td style="width: 318px">
<asp:DropDownList runat="server" id="Listville_" DataTextField="Ville" DataSourceID="ville_Data" DataValueField="Ville" AutoPostBack="True" Width="306px" Height="18px" BackColor="#FFFF00">
</asp:DropDownList>
<asp:AccessDataSource runat="server" ID="ville_Data" DataFile="Annuaire.mdb" SelectCommand="SELECT * FROM [ville_]">
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td class="style14" colspan="2"> </td>
</tr>
<tr>
<td style="width: 292px" class="style12"><strong>Organisme</strong></td>
<td class="style13" style="width: 318px">
<asp:DropDownList runat="server" id="ListVill_Org" DataTextField="ORGANISME" DataSourceID="Vill_OrgData" DataValueField="ORGANISME" AutoPostBack="True" Width="307px" Height="16px" BackColor="#FFFF00">
</asp:DropDownList>
<asp:AccessDataSource runat="server" ID="Vill_OrgData" DataFile="Annuaire.mdb" SelectCommand="SELECT * FROM [Vill_Org] WHERE ([Ville] = ?)">
<SelectParameters>
<asp:controlparameter PropertyName="SelectedValue" Type="String" Name="Ville" ControlID="Listville_" />
</SelectParameters>
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td class="style14" colspan="2"> </td>
</tr>
</table>
<table align="center" class="style11">
<tr>
<td>
<div class="style1" style="width: 593px">
<asp:DetailsView runat="server" Width="600px" Height="50px" id="resultatview" AutoGenerateRows="False" DataSourceID="ResultatData" list="True" GridLines="None" ForeColor="#333333" CellPadding="4" CssClass="style1" AllowPaging="True">
<FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<EditRowStyle BackColor="#999999" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<Fields>
<asp:imagefield HeaderImageUrl="G:\Aloua\OCF_\img3.png">
<ItemStyle BackColor="CornflowerBlue" />
<HeaderStyle BackColor="CornflowerBlue" />
</asp:imagefield>
<asp:boundfield DataField="N°" SortExpression="N°" HeaderText="Certificat de Qualification N° :">
</asp:boundfield>
<asp:boundfield DataField="ORGANISME" SortExpression="ORGANISME" HeaderText="Organisme :">
</asp:boundfield>
<asp:boundfield DataField="adresse" SortExpression="adresse" HeaderText="Adresse :">
</asp:boundfield>
<asp:boundfield DataField="N° CNSS" SortExpression="N° CNSS" HeaderText="N° CNSS :">
</asp:boundfield>
<asp:boundfield DataField="identifiant fiscal" SortExpression="identifiant fiscal" HeaderText="Identifiant fiscal :">
</asp:boundfield>
<asp:boundfield DataField="date_val" SortExpression="date_val" HeaderText="Validité : du 06/01/2010 au :">
</asp:boundfield>
<asp:hyperlinkfield HeaderText="liens" Text="liens" FooterText="liens">
</asp:hyperlinkfield>
<asp:imagefield HeaderImageUrl="G:\Aloua\OCF_\img4.png">
<ItemStyle BackColor="CornflowerBlue" />
<HeaderStyle BackColor="CornflowerBlue" />
</asp:imagefield>
<asp:boundfield DataField="domaine" SortExpression="domaine" HeaderText="Domaine">
</asp:boundfield>
<asp:boundfield DataField="intitule_dom" SortExpression="intitule_dom" HeaderText="Intitule_dom">
</asp:boundfield>
<asp:boundfield DataField="NOM DE L'EXPERT 1" SortExpression="NOM DE L'EXPERT 1" HeaderText="Nom de l'Expert">
</asp:boundfield>
<asp:boundfield DataField="cin_exp" SortExpression="cin_exp" HeaderText="Cin_exp">
</asp:boundfield>
</Fields>
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<HeaderStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:DetailsView>
</div>
<asp:AccessDataSource runat="server" ID="ResultatData" DataFile="Annuaire.mdb" SelectCommand="SELECT * FROM [OCF] WHERE (([Ville] = ?) AND ([ORGANISME] = ?)) ORDER BY [ORGANISME]">
<SelectParameters>
<asp:controlparameter PropertyName="SelectedValue" Type="String" Name="Ville" ControlID="Listville_" />
<asp:controlparameter PropertyName="SelectedValue" Type="String" Name="ORGANISME" ControlID="ListVill_Org" />
</SelectParameters>
</asp:AccessDataSource>
</td>
</tr>
</table>
</form>
<table style="width: 500px" align="center">
<tr>
<td style="width: 250px" class="style7">
<a href="carte.htm" class="style8"><strong>Retour</strong></a></td>
<td style="width: 250px" class="style6">
<img alt="" src="retour.png" width="26" height="25" /></td>
</tr>
</table>
</body>
</html>
Merci