Bonjour à tous, j'aimerai connaître la marche à suivre pour avoir pour un meme LinkButton un appel à une fonction côté serveur, et une autre côté client lors du clic sur ce boutton.

Voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<asp:LinkButton ID="lbtnStatut" runat="server"                                                                                                                  
                                            Text="Statut"        
                                            OnClientClick="showPopupStatut(this); return false;"
                                            OnClick="lbtnStatut_Click"/>
fonction javascript:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
function showPopupStatut(source){
            this._source = source;
            this._popup = $find('mpeStatutBehavior');
 
            //  find the Statut ModalPopup and show it    
            this._popup.show();
            }
fonction C#
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 protected void lbtnStatut_Click(object sender, System.EventArgs e)
    {
        //  get the gridviewrow from the sender so we can get the datakey we need
        LinkButton lbtnStatut = sender as LinkButton;
        GridViewRow row = (GridViewRow)lbtnStatut.NamingContainer;
        this._ucStatut.iID = Int32.Parse(gvTab2.DataKeys[row.RowIndex].Value.ToString());
        this.pnlStatut.Controls.Add(_ucStatut);
    }
Car en procédant ainsi, seul ma fonction Javascript est executée...