This is a migrated thread and some comments may be shown as answers.

Show confirm

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Angella
Top achievements
Rank 1
Angella asked on 28 Aug 2012, 03:05 AM
Hi,

I am looking for  a method to show a confirm window(Yes/No) on click of a LinkButton in the FormTemplate.grid. How to get this?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 28 Aug 2012, 03:08 AM
Hi,

Please try thr following code snippet to show confirm message on delete.

ASPX:
<EditFormSettings EditFormType="Template" >
     <FormTemplate>
           <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="javascript:return confirm('Do you want to             delete?')">Delete</asp:LinkButton>
     </FormTemplate>
</EditFormSettings>

Thanks,
Princy.
Tags
Grid
Asked by
Angella
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or