javascript confirm delete gridview





Home/ASP.NET Forums/General ASP.NET/HTML, CSS and JavaScript/Add javascript confirm to delete button.Thanks for pointing out the similarity. In fact this is what I am doing to make my delete button in gridview row work for confirm message display. While using GridView in ASP.NET, you will not be able to write OnClientClick code for asp:CommandField Link / Button directly.deleteButton.OnClientClick "return confirm(Are you sure, you want to delete this Record ?)" catch(Exception exception) . Im trying to write a custom delete confirmation function for a gridview CommandField(containing a delete Linkbutton), to replace the standard confirm dialog in Javascript, so I can customise the appearance of the box, and its title etc. Thursday, October 27, 2011. GridView delete confirmation." Also put this piece of javascript in the header section. "