百思不得其解:Microsoft JScript 运行时错误: 缺少对象
我给gridview增加了一个编辑和删除列,一点编辑就出现了这个错误。
要怎么解决?
<asp:GridView ID="gdClerkInfo" runat="server" Width="100%"
ItemStyle-CssClass=".styleFont" CellPadding="4" ForeColor="#333333"
GridLines="None" onrowcommand="gdClerkInfo_RowCommand"
onrowdatabound="gdClerkInfo_RowDataBound" onrowdeleted="gdClerkInfo_RowDeleted"
onrowdeleting="gdClerkInfo_RowDeleting" onrowediting="gdClerkInfo_RowEditing">
<AlternatingRowStyle BackColor="White" />
<asp:CommandField HeaderText="编辑" ShowEditButton="True"/>
<asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
</Columns>
</asp:GridView>