MyException - 我的异常网
当前位置:我的异常网» C# » gridview 中更新按钮失效 急该怎么解决

gridview 中更新按钮失效 急该怎么解决

www.MyException.Cn  网友分享于:2013-12-31  浏览:41次
gridview 中更新按钮失效 急!!!
各位大侠帮帮忙,我使用模板里面有删除、修改、编辑、更新按钮,代码如下:

<asp:TemplateField   HeaderText= "操作 "   ShowHeader= "False "> <EditItemTemplate>
<asp:LinkButton   id= "LinkButton1 "   runat= "server "   Text= "更新 "   Width= "40px "   CausesValidation= "True "   CommandName= "Update "> </asp:LinkButton>   <asp:LinkButton   id= "LinkButton2 "   runat= "server "   Text= "取消 "   Width= "40px "   __designer:wfdid= "w14 "   CausesValidation= "False "   CommandName= "Cancel "> </asp:LinkButton>  
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton   id= "LinkButton1 "   runat= "server "   Text= "编辑 "   Width= "40px "   __designer:wfdid= "w11 "   CausesValidation= "False "   CommandName= "Edit "   OnClientClick= "return   confirm( '确认要编辑吗? '); "> </asp:LinkButton>   <asp:LinkButton   id= "LinkButton3 "   runat= "server "   Text= "删除 "   Width= "40px "   __designer:wfdid= "w12 "   CausesValidation= "False "   CommandName= "Delete "   OnClientClick= "return   confirm( '确认要删除吗? '); "> </asp:LinkButton>   </ItemTemplate>
</asp:TemplateField>
删除、编辑、取消按钮都可用,可是更新按钮不可用,也没有提示错误,也没有POSTBACK,请问这是什么原因呢?麻烦各位了!!

------解决方案--------------------
更新和编辑按钮的id一样?
------解决方案--------------------
帮顶吧,没看出来

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有