Ho un Updatepanel e Gridview al suo interno.Utilizzo di GridView all'interno di UpdatePanel
<asp:UpdatePanel ID="uplPanel" UpdateMode="Conditional" runat="server" OnLoad="uplPanel_Load">
<ContentTemplate>
<asp:GridView ID="gvPrList" runat="server" AutoGenerateColumns="false" AllowPaging="false"
AllowSorting="false" CssClass="list-table" HeaderStyle-CssClass="header">
<Columns>
<ItemTemplate>
<asp:Button ID="btnEdit" runat="server" Text="Edit" CssClass="button save" OnCommand="onPrItemCmd"
CommandName="editRow" CommandArgument='<%#Bind("ID") %>' Style="width: 80px" />
<asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button save" OnCommand="onPrItemCmd"
CommandName="deleteRow" CommandArgument='<%#Bind("ID") %>' Style="width: 80px" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
Quando clicco sul mio pulsanti all'interno del Griview, non fuoco gli eventi. Qualche idea?
Grazie. Ho già il mio codice dietro il metodo handler per l'evento onPrItemCmd. – Roshe
Hai provato ad aggiungere il gestore di eventi 'onclick' al tuo pulsante e poi controlla se funziona? –