title: ASP.Net, jQuery - $(document).ready(function () not firing
body: <p>I have a wizard with a number of steps, for each step I have a user control being added.
  For one of the step, I want to run jQuery script on page load, so following is added in user control .ascx file -</p>
  
  <pre><code>&lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PropertyEntryWizard10HipEpcQuestions.ascx.cs"          Inherits="PropertyInstructionEntryWizard.PropertyEntryWizard09HipEpcQuestions" %&gt;
  &lt;%@ Register Src="~/Controls/Properties/HipManager.ascx" TagName="hip_manager" TagPrefix="rt" %&gt;
  
   &lt;script type="text/javascript"&gt;
            $(document).ready(function () {
            alert('HipManager ready');            
          });
   &lt;/script&gt;
  
  &lt;h2&gt;EPC&lt;/h2&gt;   
  
  &lt;rt:hip_manager ID="ctlHipMan" runat="server" ValidationGroup="Wizard" /&gt;
  </code></pre>
  
  <p>But it's not firing on page load,<br>
  instead when I do a manual re-load from the browser button, it does get run and I get the alert.</p>
  
  <p>NOTE: I also found out that if I move the script from this user control to main .aspx page, it works fine. My user control is using lots of PeterBlum controls, so I am not sure if any script associated with them is causing the issue.</p>
  
  <p>Any idea, what I am missing?</p>
  
  <p>Thank you!</p>