title: bootstrap modal popup c# codebehind
body: <p>i am using bootstrap in my c# asp.net project and i want to show to show the modal popup from code behind.</p>
  
  <p>in my page header i have a javascript function as follows:</p>
  
  <pre><code>function LoginFail() {
          $('#windowTitleDialog').modal('show');
      }
  </code></pre>
  
  <p>and on the click of my button i am calling the javascript as follows</p>
  
  <pre><code>ScriptManager.RegisterClientScriptBlock(this, typeof(System.Web.UI.Page), "LoginFail", "LoginFail();", true);
  </code></pre>
  
  <p>this does not show the modal popup. however, if i use something like <code>alert('login failed')</code>, it works fine.</p>
  
  <p>can anybody please help with this?</p>