当我单击 gridview 行中的按钮时,我的更新面板不会触发。th RowCommand 是错误的触发事件吗?那是在按钮图像单击时运行的代码。
<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>