title: show a bootstrap modal on page load in asp.net
body: <p>I am a newbie in asp.net. I want to show a simple bootstrap modal on pageload in my page. The application is written in asp.net. I wrote the code like we do in php to show a modal:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(window).load(function () {
  $('#myModal').modal('show');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Modal</p>
  
  <pre><code>&lt;div class="modal" tabindex="-1" role="dialog"&gt;
  &lt;div class="modal-dialog" role="document"&gt;
  &lt;div class="modal-content"&gt;
    &lt;div class="modal-header"&gt;
      &lt;h5 class="modal-title"&gt;Modal title&lt;/h5&gt;
      &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
        &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
      &lt;/button&gt;
    &lt;/div&gt;
    &lt;div class="modal-body"&gt;
      &lt;p&gt;Modal body text goes here.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="modal-footer"&gt;
      &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
      &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>But its not working.. I know the way we code in asp.net is different from php. As I am unaware of the concepts in .net I am unable to get this done.
   Can anyone help me please..</p>