这是一个单击进入的链接进入的程序,其中<asp:LinkButton ID="btTitle" CommandName="edit" runat="server">与datalist控件的OnEditCommand="lstContent_EditCommand" 对应,
也就是点击链接执行lstContent_EditCommand事件,现在我想改为双击表格的行执行lstContent_EditCommand事件,该怎么做啊,帮帮忙啊。
<asp:DataList ID="lstContent" runat="server" CssClass="directoryLists" CellPadding="0"
CellSpacing="0" OnItemDataBound="lstContent_ItemDataBound" DataKeyField="FileID"
OnEditCommand="lstContent_EditCommand" Style="border-collapse: collapse;">
<HeaderTemplate>
<table class="Head" cellspacing="0" cellpadding="0" >
<tr>
<td class="Td1">
<asp:Label ID="Label1" runat="server">主题</asp:Label></td>
<td class="Td2">
<asp:Label ID="Label6" runat="server">类别</asp:Label></td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table class="Detail" cellspacing="0" cellpadding="0">
<tr class="trColor">
<td class="Td1">
<asp:LinkButton ID="btTitle" CommandName="edit" runat="server">
<asp:Label ID="lblTitle" runat="server" ></asp:Label>
</asp:LinkButton>
</td>
<td class="Td2">
<asp:Label ID="lblFileDB" runat="server"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>