@bobnoordam

ASP.NET Webforms, MVC & DevExpress: delete confirmation on a gridview

Standard ASP.NET GridView with ASP:Button

<asp:Button ID="Button3" runat="server" CausesValidation="False" 
	CommandName="Delete" Text="Delete"
	OnClientClick="if(!confirm('Contactpersoon verwijderen?')) return false;" 
/>

Standard ASP.NET GridView with DevExpress ASPxButton

<dx:ASPxButton ID="ASPxButtonSomeButton" runat="server" Text="ClickMe!" 
	CssClass="buttonBase" OnClick="ButtonSomeButton_Click">
	<ClientSideEvents Click="function(s,e) { e.processOnServer = confirm('Sure ?'); }"></ClientSideEvents>
</dx:ASPxButton>

MVC GridView, using a table to display your data

<input type="button" value="Delete" onclick="if (confirm('delete?')) { 
	location.href='@Url.Action("Delete", "Admin", new { id = Model.Id })'
}" />