给出两个例子
<asp:Button ID="Button1" CausesValidation="false" CommandName="delete" OnClientClick="return confirm('确认要删除此行信息吗?')" runat="server" Text="Button" />
和
<asp:LinkButton ID="BtnDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" OnClientClick="return confirm('确认要删除此行信息吗?')"></asp:LinkButton>