0
當我點擊gridview行中的按鈕時,我的更新面板不會觸發。 RowCommand是否是錯誤的觸發事件?這是在buttonimage點擊上運行的代碼。從gridview單元格更新面板觸發器
<fieldset style="width:750px;">
<legend>Update Pending Registrations</legend>
<asp:UpdatePanel ID="updtPendingUsers" runat="server">
<ContentTemplate>
<asp:Label ID="lblgvPending" runat="server" Visible="False"></asp:Label>
<asp:GridView ID="gvPendingUsers" runat="server" AutoGenerateColumns="False"
CssClass="mGrid" DataKeyNames="userid">
</asp:GridView>
<asp:EntityDataSource ID="edsPendingUsers" runat="server" ConnectionString="name=enerteckEntities"
DefaultContainerName="enerteckEntities" EnableFlattening="False"
EntitySetName="pendingusers">
</asp:EntityDataSource>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="gvPendingUsers" EventName="RowCommand" />
</Triggers>
</asp:UpdatePanel>
</fieldset>