Radconfirm before button click event.

2 posts, 0 answers
  1. Swapna M
    Swapna M avatar
    21 posts
    Member since:
    Dec 2009

    Posted 29 Apr 2010 Link to this post

    Hi,
        I want to use radconfirm before button click event.
    Please refer the following code.

    <

     

    asp:LinkButton ID="btnSubmit" runat="server"  OnClientClick="ConfirmSubmit()" OnClick="btnSubmit_Click">Submit</asp:LinkButton>

     

     

     

     

    function ConfirmSubmit() {

     

     

    var callBackFn = function(arg) {

     

     

    return arg;

     

    }

    radconfirm(

    "Are you sure you want to submit this action?", callBackFn, 350, 120, this, 'Submit Confirmation');

     

    }

     

     

     


    Here btnSubmit_Click event is raised before i click on OK or Cancel in radconfirm.
    Please let me know how to correct this behaviour?

     

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 29 Apr 2010 Link to this post

    Hello,

    Checkout the following code library which demonstrates how to block the execution thread with radconfirm.
    Block the execution thread with radconfirm

    I hope this would help you,
    Princy.
Back to Top