Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Gridview Delete confirmation

Hi Experts,

I have a delete link on my gridview. When I click delete I want to ask confirmation . My code is

<ItemTemplate>
                     <asp:LinkButton  ID="lnkDelete" runat="server" Text="Delete" CommandName ="Delete" OnClientClick="return confirm     ('Are you sure you want to delete?')"></asp:LinkButton>
 </ItemTemplate>

How can I ask message like  'Are you sure you want to delete XXX Customer". XXX customer is also a value on the same row.

Please help.
 Thank you
Avatar of Miguel Oz
Miguel Oz
Flag of Australia image

See my answer here
ASKER CERTIFIED SOLUTION
Avatar of Deja Anbu
Deja Anbu
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

ASKER

Thank you very much. It worked!!