Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
This is my javascript
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
ASP.NET
<blockquote class="FQ"><div class="FQA">Quote:</div>
<asp:LinkButton ID="lnkDelete" runat="server"  CommandName="Delete"
   Text="Delete" OnClientClick="return DeleteConFirmation();"></asp:LinkButton>
</blockquote>
Posted
Comments
Tirthankar Dutta 28-May-12 7:25am    
The delete button is inside a Gridview
Sergey Alexandrovich Kryukov 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".
--SA
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900