How to create a Delete button in a GridView which calls a Javascript function?

  • Thread starter Miguel Dias Moura
  • Start date
M

Miguel Dias Moura

Hello,

In an Asp.Net 2.0 GridView I have ButtonField for deleting the record.
I used .CommandName = "Delete".

I want to cancel this server side action.
I want, instead, the button to call a javascript function on the client
side.
And I need to send to that javascript function the RowIndex.

How can I do this?

Thanks,
Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top