Bonjour
je travaille sur VS2008 et SQL2000
j'ai crée sous SQL 2000 des champs de type bit
exemple Abords type:bit
zone type:bit

et dans VS2008 je veux créer pour Abords 4 radio boutons
1:+ 2:++ 3:- 4:--

je sais que je dois créer une SQLDataSource ayant comme chemin ma table ou je peux trouver Abords

mais lorsque je veux créer une list de radio bouton pour ce champ abords avec les différentes valeurs

cela ne m'affiche rien!!

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Page3.aspx.vb" Inherits="WebApplication1.Page3" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Informations sur le Tri</title>
</head>
<body>
    <form id="form1" runat="server">
 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:PRODUCTIONConnectionString %>" 
        DeleteCommand="DELETE FROM [Tri] WHERE [Identifiant_T] = @Identifiant_T" 
        InsertCommand="INSERT INTO [Tri] ([Abords], [Objet_inutile], [Zone_de_travail], [Objet_a_proximite], [Production_precedente]) VALUES (@Abords, @Objet_inutile, @Zone_de_travail, @Objet_a_proximite, @Production_precedente)" 
        SelectCommand="SELECT [Abords], [Objet_inutile], [Zone_de_travail], [Objet_a_proximite], [Production_precedente], [Identifiant_T] FROM [Tri]" 
        UpdateCommand="UPDATE [Tri] SET [Abords] = @Abords, [Objet_inutile] = @Objet_inutile, [Zone_de_travail] = @Zone_de_travail, [Objet_a_proximite] = @Objet_a_proximite, [Production_precedente] = @Production_precedente WHERE [Identifiant_T] = @Identifiant_T">
        <DeleteParameters>
            <asp:Parameter Name="Identifiant_T" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Abords" Type="Boolean" />
            <asp:Parameter Name="Objet_inutile" Type="Boolean" />
            <asp:Parameter Name="Zone_de_travail" Type="Boolean" />
            <asp:Parameter Name="Objet_a_proximite" Type="Boolean" />
            <asp:Parameter Name="Production_precedente" Type="Boolean" />
            <asp:Parameter Name="Identifiant_T" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Abords" Type="Boolean" />
            <asp:Parameter Name="Objet_inutile" Type="Boolean" />
            <asp:Parameter Name="Zone_de_travail" Type="Boolean" />
            <asp:Parameter Name="Objet_a_proximite" Type="Boolean" />
            <asp:Parameter Name="Production_precedente" Type="Boolean" />
        </InsertParameters>
 
    </asp:SqlDataSource>
    <h2>Tri-Débarras</h2>
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
        DataSourceID="SqlDataSource1" DataTextField="Abords" 
        DataValueField="Abords" Height="25px" TabIndex="5" Width="485px">
        <asp:ListItem>+</asp:ListItem><asp:ListItem>-</asp:ListItem><asp:ListItem>++</asp:ListItem><asp:ListItem>--</asp:ListItem>
    </asp:RadioButtonList>
 
    </form>
</body>
</html>
j'espere etre assez claire
merci