我正在Gridview中显示摘要页面。一切正常,但是当我点击它时,gridview rowcommand事件的最后3行没有触发。
下面是我用于命令参数的aspx代码。
<asp:LinkButton ID="lnkUnpaid" runat="server" Text='<%# Convert.ToDouble(Eval("Unpaid_Claims")).ToString("#,##0.00") %>'
CommandArgument='<%# Eval("Companyid")+ ";" +Eval("TypeOf")+ ";" +Eval("BranchID")+ ";" +Eval("CategoryID") %>' CommandName="Unpaid"></asp:LinkButton>
以下是HTML内部生成的代码
<tr style="background-color:White;">
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right">
<span id="ctl00_Main_gvSummary_ctl28_lblCategory">预付手机费</span>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl28_lnkTotal" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl28$lnkTotal','')">5,620.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl28_lnkApproved" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl28$lnkApproved','')">5,620.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl28_lnkPending" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl28$lnkPending','')">0.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl28_lnkpaid" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl28$lnkpaid','')">200.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl28_lnkUnpaid" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl28$lnkUnpaid','')">5,420.00</a>
</td>
</tr>
<tr style="background-color:#E3EAEB;">
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right">
<span id="ctl00_Main_gvSummary_ctl29_lblCategory">预支薪金</span>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl29_lnkTotal" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl29$lnkTotal','')">5,075.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl29_lnkApproved" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl29$lnkApproved','')">5,075.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl29_lnkPending" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl29$lnkPending','')">0.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl29_lnkpaid" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl29$lnkpaid','')">5,075.00</a>
</td>
<td align="right">
<a id="ctl00_Main_gvSummary_ctl29_lnkUnpaid" href="javascript:__doPostBack('ctl00$Main$gvSummary$ctl29$lnkUnpaid','')">0.00</a>
</td>
</tr>
下面是屏幕截图。用红色标记的区域在点击时不会触发。 ![Griddiew 1
中的错误非常感谢任何帮助。