title: Alertify in a asp.net c# page
body: <p>sorry if my english is poor.</p>
  
  <p>I've a question, i think that the problem is my poor knowledge of javascript but.. i know that you can help me about this.</p>
  
  <p>i've a page with an imagebutton, i use this for delete data and i need a confirmation dialog box. Alertify is pretty, i use altertify alert in server side like this: </p>
  
  <pre><code>string myScript2 = "alertify.error('message.')";
  ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), 
                  Guid.NewGuid().ToString(), myScript2, true);
  return; 
  </code></pre>
  
  <p>and work fine!</p>
  
  <p>but i don't understand how to use alertify.confirm. </p>
  
  <p>for example i've used </p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="../../js/alertify.min.js"&gt;&lt;/script&gt;
      &lt;!-- include the core styles --&gt;
  &lt;link rel="stylesheet" href="../../js/alertify.core.css" /&gt;
      &lt;!-- include a theme, can be included into the core instead of 2 separate files --&gt;
  &lt;link rel="stylesheet" href="../../js/alertify.default.css" /&gt;
  &lt;script type="text/javascript"&gt;
          $("#btElimina").on('click', function () {
              alertify.confirm("This is a confirm dialog", function (e) {
                  if (e) {
                      alertify.success("You've clicked OK");
                  } else {
                      alertify.error("You've clicked Cancel");
                  }
              });
              return false;
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>but nothing to do...i can't use onclientclick because alertify is a non-blocking instead a modal windows... 
  can you help me to understand? not to write code for me, but, to understand and make me viable
  thank you</p>
  
  <p>Henry</p>