IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Développement Web avec .NET Discussion :

Modifier base de données à partir de ma page web


Sujet :

Développement Web avec .NET

  1. #1
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut Modifier base de données à partir de ma page web
    Bonjour,

    j'aimerais savoir s'il est possible de modifier une base de données à partir d'une page web créé avec ASP.net.

    Je m'explique, ma page web contient un tableau qui reçoit des données à partir d'une base Oracle. En voici une image :



    Comme vous pouvez le constater, il y a des case à cocher dans ce tableau. J'aimerais faire en sorte de modifier certaines lignes de ma base en fonction des cases que j'aurais cochées.
    Comment pensez-vous que je devrais m'y prendre ?
    J'ai par exemple réussi à envoyer la liste des mes checkbox cochée à mon code behind C# à l'aide de jQuery.ajax() mais je ne sais pas si je pars dans la bonne direction.
    Une aide svp

    Merci d'avance

  2. #2
    Rédacteur/Modérateur
    Avatar de Skalp
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 694
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 694
    Points : 2 927
    Points
    2 927
    Par défaut
    Comment est généré ton tableau ? S'agit-il d'un composant .Net ?

    Sans autre information, je dirais que faire ça en ajax avec jQuery me parait bien fastidieux car tu devras passer en paramètre l'ensemble des données de la ligne et ceci pour chaque ligne cochée...

  3. #3
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut
    Oui, c'est un composant .net.
    C'est un <asp:Table...> que je remplis à partir du code behind C# avec une connection de ce type :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    OracleConnection oConnexion = new OracleConnection();
                oConnexion.ConnectionString = "data source=(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (COMMUNITY = *****)(PROTOCOL = TCP)(HOST = *****)(PORT = 1521)))(CONNECT_DATA = (SID = *****)));user id=*****;password=*****;";
     
                oConnexion.Open();

  4. #4
    Rédacteur/Modérateur
    Avatar de Skalp
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 694
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 694
    Points : 2 927
    Points
    2 927
    Par défaut
    Dans le code behind, tu devrais avoir une instance .Net de cette table.

    Donc, dans la méthode qui va bien, tu dois pouvoir accéder aux lignes cochées de cette table et enregistrer les données en table.

  5. #5
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut
    Merci pour ton aide.

    Il faut que j'essaie de modifier ces valeurs à partir d'un formulaire "pop-up" (que j'ouvre avec jQuery) dans ma page. Donc je pense que je suis obligé de passer par de l'ajax non ? Du coup, quand je fais ma webmethod en C#, je n'ai pas accès aux controls de ma page dans cette fonction :/

  6. #6
    Rédacteur/Modérateur
    Avatar de Skalp
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 694
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 694
    Points : 2 927
    Points
    2 927
    Par défaut
    Hum, je ne comprends pas trop l'ergonomie du fonctionnement...

    1. Tu coches des lignes dans le tableau
    2. Tu cliques sur un bouton "Modifier les lignes cochées" (j'imagine)
    3. Une popup s'affiche avec un formulaire pour modifier chaque ligne cochée
    4. Tu cliques sur un bouton "Fermer la popup" (j'imagine)
    5. Les valeurs se mettent à jour dans le tableau

    C'est bien ça ?

  7. #7
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut
    Exactement .

    Pour l'ouverture de la pop-up j'utilise les "dialog" de jQuery. Seulement pour éviter que le postback se fasse avant que j'ai fermé le formulaire, je dois l'annuler. C'est pour ça que je ne sais pas trop comment m'y prendre.
    J'essaie de faire de l'ajax avec jQuery pour appeler une fonction C# qui modifiera les données dans la base et qui rechargera ma page web mais je ne sais pas trop comment m'y prendre. Pour l'instant j'ai ça

    Mon control bouton :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <asp:Button ID="bt3" runat="server" Text="Bouton" OnClientClick="return btnAffectationClick();" />
    Ma fonction javascript qui affiche la pop-up et qui empêche le postback en faisant "return false;" :

    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
     
    function btnAffectationClick() {
     
        var listeIdOF_Cochés = new Array();
        var listeIdEntiere = "";
     
        $("#tabG :checkbox:checked").each(function () {
            var idLigne = $(this).attr('id').replace("cb", "");
            listeIdOF_Cochés.push(idLigne);
        });
     
        listeIdEntiere = listeIdOF_Cochés.join(";");
     
        $.ajax({
            type: "POST",
            data: "{ request : " + JSON.stringify(listeIdEntiere) + "}",
            url: "Test.aspx/doAssignation",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (msg) {
                alert(msg.d);
            },
            error: function () {
                alert("BAD");
            }
        });
     
        return false;
    }
    Et mon code C# qui pour l'instant ne fais pas grand chose mais qui aura pour fonction de changer les données dans la base et de recharger la page web :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    [WebMethod]
            public static string doAssignation(string request)
            {
                return request;
            }
    Une idée svp ?

  8. #8
    Rédacteur/Modérateur
    Avatar de Skalp
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 694
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 694
    Points : 2 927
    Points
    2 927
    Par défaut
    Qu'y a-t-il comme champs dans ce formulaire pop-up ?

  9. #9
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut
    Cette pop-up est déclarée dans le fichier aspx et contient des tableaux (pour la mise en page) ainsi que divers control textbox qui seront pour certains remplis à l'ouverture de la pop-up et pour les autres à remplir à la main . Voici le code (un peu long mais répétitif) de la pop-up :

    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
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
     
    <!-- BLOC DE LA POP UP -->
     
                    <div id="popUpAffectation" title="Affectation" style="display:none;">
     
                        <div id="popUpAffectationBlocs">
     
                            <div id="popUpAffectation_OF_EnCours">
     
                                <asp:Table ID="tabAffect1" runat="server">
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="4" HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Titres_OF_EnCours" runat="server" Text="OF en cours"></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_NumOF" runat="server" Text="OF n°"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_NumOF" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right"><asp:Label ID="lbPopUpAffectation_Champs_SeqOF" runat="server" Text="Séquence"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_SeqOF" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left"><asp:Label ID="lbPopUpAffectation_Champs_Ref" runat="server" Text="Référence"></asp:Label></asp:TableCell>
                                        <asp:TableCell ColumnSpan="3"><asp:TextBox ID="lbPopUpAffectation_TB_Ref" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left"><asp:Label ID="lbPopUpAffectation_Champs_QteP" runat="server" Text="Qté prévue"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_QteP" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right"><asp:Label ID="lbPopUpAffectation_Champs_QteR" runat="server" Text="Qté revue"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_QteR" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left"><asp:Label ID="lbPopUpAffectation_Champs_Comp" runat="server" Text="Besoin composant"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_Comp" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right"><asp:Label ID="lbPopUpAffectation_Champs_DejaAff" runat="server" Text="Déjà affectée"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_DejaAff" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Right"><asp:Label ID="lbPopUpAffectation_Champs_Restant" runat="server" Text="Restant à assigner"></asp:Label></asp:TableCell>
                                        <asp:TableCell><asp:TextBox ID="lbPopUpAffectation_TB_Restant" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                </asp:Table>
     
                            </div>
     
                            <div id="popUpAffectation_Etiquette_EnCours">
     
                                <asp:Table ID="tabAffect2" runat="server">
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="4" HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Titres_Etiq_EnCours" runat="server" Text="Etiquette en cours"></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_NumEtiq" runat="server" Text="Etiquette n°"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_NumEtiq" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_DejaAff2" runat="server" Text="Déjà affectée"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_DejaAff2" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_QteInit" runat="server" Text="Qté initiale"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_QteInit" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_QteRestante" runat="server" Text="Qté restante"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_QteRestante" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                </asp:Table>
     
                            </div>
     
                            <div id="popUpAffectation_Action">
     
                                <asp:Table ID="tabAffect3" runat="server">
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Titres_Action" runat="server" Text="Action"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:Label ID="lbPopUpAffectation_Autres_Comp" runat="server" Text="Besoin composant"></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Left">
                                            <asp:RadioButton ID="rbtnAffectReduc" runat="server" Text="Réduire OF" />
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Reduc" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Left">
                                            <asp:RadioButton ID="rbtnAffectAugment" runat="server" Text="Augmenter OF" />
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Augment" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Left">
                                            <asp:RadioButton ID="rbtnAffectScinder" runat="server" Text="Scinder étiquette" />
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Scinder" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="4" HorizontalAlign="Left">
                                            <asp:RadioButton ID="rbtnAffectAutre" runat="server" Text="Autre" />
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_QteR_Action" runat="server" Text="Qté OF revue"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_QteR_Action" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_X_Action" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_QteEtiq" runat="server" Text="Qté étiquette"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_QteEtiq" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_X" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                </asp:Table>
     
                            </div> <!-- FIN : ACTION -->
     
                            <div id="popUpAffectation_Suivant">
     
                                <asp:Table ID="tabAffect4" runat="server">
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="4" HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Titres_Suivant" runat="server" Text="OF suivant avec ce composant"></asp:Label>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_NumOF" runat="server" Text="OF n°"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_NumOF" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_NumSeq" runat="server" Text="Séquence"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_NumSeq" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_Reference" runat="server" Text="Référence"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell ColumnSpan="3">
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_Reference" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_QteP" runat="server" Text="Qté prévue"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_QteP" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_QteR" runat="server" Text="Qté revue"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_QteR" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell HorizontalAlign="Left">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_Comp" runat="server" Text="Besoin composant"></asp:Label></asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_Comp" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                        <asp:TableCell HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_DejaAff" runat="server" Text="Déjà affectée"></asp:Label></asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_DejaAff" runat="server" Width="98%"></asp:TextBox></asp:TableCell>
                                    </asp:TableRow>
     
                                    <asp:TableRow>
                                        <asp:TableCell ColumnSpan="3" HorizontalAlign="Right">
                                            <asp:Label ID="lbPopUpAffectation_Champs_Suivant_Restant" runat="server" Text="Restant à assigner"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox ID="lbPopUpAffectation_TB_Suivant_Restant" runat="server" Width="98%"></asp:TextBox>
                                        </asp:TableCell>
                                    </asp:TableRow>
     
                                </asp:Table>
     
                            </div> <!-- FIN : SUIVANT -->
     
                        </div>
     
                    </div>
     
                <!-- FIN BLOC DE LA POP UP -->

  10. #10
    Rédacteur/Modérateur
    Avatar de Skalp
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 694
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur .NET

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 694
    Points : 2 927
    Points
    2 927
    Par défaut
    Ok, je comprends mieux ton problème.
    Malheureusement, je ne m'y connais pas des masses en ASP.NET, mais j'ai un collègue qui m'a dit que tu peux regarder du côté de ICallbackEventHandler.

    Voir l'article msdn Implémentation par programmation des rappels clients sans postback dans des pages Web ASP.NET.

  11. #11
    Membre habitué
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2009
    Messages
    391
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Avril 2009
    Messages : 391
    Points : 185
    Points
    185
    Par défaut
    Merci bien je vais regarder ça. Et merci à votre collègue aussi

Discussions similaires

  1. Réponses: 2
    Dernier message: 21/05/2016, 18h48
  2. Réponses: 3
    Dernier message: 24/04/2012, 18h39
  3. Réponses: 0
    Dernier message: 17/04/2012, 10h38
  4. Update base de donnée à partir de ma page aspx
    Par hugo7 dans le forum ASP.NET
    Réponses: 6
    Dernier message: 23/02/2010, 02h35
  5. Réponses: 5
    Dernier message: 11/02/2010, 23h41

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo