RadAlert with RadConfirm

1 posts, 0 answers
  1. kedar
    kedar avatar
    10 posts
    Member since:
    Apr 2015

    Posted 20 May 2015 Link to this post

    how i can show Rad alert with radconfirm

    <asp:Button ID="Button1" Text="Button" runat="server" OnClick="Button1_Click" OnClientClick="confirmAspButton(this);return false;"></asp:Button>

     

    function confirmAspButton(button)        {
    if (document.getElementById("txt11").value == "")            {
                   radalert('Please select txt11.', 400, 180, 'Dossier-Mgmt', null, null);           
    }
    if (document.getElementById("TextBox1").value == "")
    {                radalert('Please select Text1.', 400, 180, 'Dossier-Mgmt', OtherCallbackFn, null);
              }
    function OtherCallbackFn(arg)           {                if (arg) { }           }
                radconfirm("Are you sure you want to postback?", aspButtonCallbackFn, 330, 180, null, "Confirm"); function aspButtonCallbackFn(arg)            {            if (arg) { __doPostBack(_button.name, ""); }
            }       }

Back to Top