Click here to Skip to main content
13,344,765 members (51,407 online)
Rate this:
Please Sign up or sign in to vote.
See more:
This is my javascript
function DeleteConFirmation() {

jConfirm('For this Week is allready scheduled do you wish to change the data?', 'Message', function (r) {
               if (r) {
                   return true;

               else {
                   return false;


This is my aspx code
<blockquote class="FQ"><div class="FQA">Quote:</div>
<asp:LinkButton ID="lnkDelete" runat="server"  CommandName="Delete"

   Text="Delete" OnClientClick="return DeleteConFirmation();"></asp:LinkButton>
Posted 28-May-12 2:23am
Tirthankar Dutta 28-May-12 7:25am
The delete button is inside a Gridview
SAKryukov 28-May-12 13:58pm
I can see just the opposite situation: there is no deletion anywhere in the code you show? Does it mean that your code sample is incomplete? Make a complete but short code sample and post it; use "Improve question".
db7uk 28-May-12 16:42pm
I take it your delete button (link button) has the delete script in the code behind? Try changing the OnClientClick to equal:
OnClientClick="return DeleteConFirmation(); return false;"
by doing this you should be able to stop the postback that occurs with the link button!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 28 May 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100