Link to home
Start Free TrialLog in
Avatar of RadhaKrishnaKiJaya
RadhaKrishnaKiJaya

asked on

Display confirmation when gridview delete link is clicked

Hi Experts,

I have a gridview with a delete link.

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

With the confirmation I want to add some other values from the Row. So it will be easier to understand. For example there is a date called event date.  I want to include that date in the confirmation message.

Thank you
ASKER CERTIFIED SOLUTION
Avatar of Miguel Oz
Miguel Oz
Flag of Australia 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.