日期:2014-05-17 浏览次数:20663 次
function jqueryconfirm(){ $('#dialogRenew').dialog({ bgiframe: true, resizable: false, modal: true, autoOpen: false, overlay: { backgroundColor: '#000', opacity: 0.5 }, buttons: { Ok: function () { $(this).dialog('close'); //return true; }, Cancel: function () { $(this).dialog('close'); //return false; } } }); }
<asp:TemplateField HeaderText="Bestaetigen</br>操作"> <EditItemTemplate> <asp:Button ID="btnUpdate" Text="更新" ToolTip="更新" runat="server" CommandName="Update" /> <asp:Button ID="btnCancel" Text="取消" ToolTip="取消" runat="server" OnClientClick="jqueryconfirm()" CommandName="Cancel" /> </EditItemTemplate> </asp:TemplateField>