在DataList中,单击LinkButton,为什么不能激发EditCommand事件
如题:
我的源代码如下:
<asp:DataList ID="TuSeeDlt" runat="server" Style="width: 90%" BorderStyle="none" BorderWidth="1px" CellPadding="3" GridLines="horizontal" OnEditCommand="TuSeeDlt_EditCommand">
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<ItemTemplate>
<table style="width: 100%;" cellspacing="0">
<tr style="width: 100%;">
<td style="vertical-align: middle; height: 26px; text-align: right;" colspan="5">
<asp:LinkButton ID="Delect" runat="server" CausesValidation="false"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "tutor_ID")%>'
CommandName="Delect">删除</asp:LinkButton>
</td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BackColor="#F7F7F7" />
<ItemStyle BackColor="White" ForeColor="#4A3C8C" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
</asp:DataList>
protected void TuSeeDlt_EditCommand(object source, DataListCommandEventArgs e)
{
}
单击"删除"为什么不能激发TuSeeDlt_EditCommand事件