日期:2014-05-16  浏览次数:20427 次

关于confirm确认无效问题
本人在gridview中使用了一个超链接按钮用来删除数据。

                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="De"
                                            Text="删除" CommandArgument='<%#Eval("Worker_no") %>' OnClientClick="return confirm('您確認刪除此信息嗎?');"></asp:LinkButton>
                                    </ItemTemplate>

在本地测试正常,但在服务器上点确认删除时无效?    求高手赐教!!!!!!!非常感谢!!!!!!!

不好意思,分数有限
------解决方案--------------------
你看服务器上生成的html有confirm这一段吗?用firebug看看点的时候是不是有错误
  
*****************************************************************************
签名档: http://feiyun0112.cnblogs.com/
------解决方案--------------------
http://www.cnblogs.com/jasonlwings/archive/2013/03/12/2955738.html