title: ASP.NET WebForms Routing Javascript Error
body: <p>I have some problems with JavaScript using ASP.NET 4.0 WebForms Routing. </p>
  
  <p>My code:</p>
  
  <pre><code>void Application_Start(object sender, EventArgs e)
  {
          RegisterRoutes(RouteTable.Routes);
  }
  
  void RegisterRoutes(RouteCollection routes)
  {
      routes.Ignore("{resource}.axd/{*pathInfo}");             
      routes.MapPageRoute("GoodInfo", "catalog/good/{good}", "~/GoodInfo.aspx");
      routes.MapPageRoute("GoodGroup", "catalog/group/{group}", "~/default.aspx");
  }
  </code></pre>
  
  <p>With no routing everything is ok. But when I use it I got an error on hte page (in Firebug) </p>
  
  <blockquote>
    <p>Error: jQuery is not defined</p>
  </blockquote>
  
  <p>on this line:</p>
  
  <pre><code>jQuery(document).ready(function () {
      HideBlocks();
  });
  </code></pre>
  
  <p>So my JavaScript does not work on the page that was routed.</p>
  
  <p>I added this line <code>routes.Ignore("{resource}.axd/{*pathInfo}");</code> but it didn't helped me. </p>