Problem in Delete Confirmation

  • 12 years ago
    Hi... I am having datagrid. In that i have button column in all the rows. Now on click of button column, grid's DeleteCommand event gets called. But i want to show the no of records affected by deleting and if user press ok , then only this Delete Command should perform delete operation. How to do this... Plz help...
  • 12 years ago
    For confirmation alert you can use confirm("her will be confirmation message") function of javascript
  • 12 years ago

    Well you can try to create a Template column in which you can use a normal ASP button and then for button client click you can display a confirmation message as bellow

    <asp:Button ID="btn" runat ="server" OnClientClick="return confirm('delete message');"/>

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond