Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET jQuery
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 1:23am
Tirthankar Dutta at 28-May-12 7:25am
The delete button is inside a Gridview
SAKryukov at 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 at 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)

Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 28 May 2012
Copyright © CodeProject, 1999-2014
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