title: ASP.NET 4.0 WebForms Routing Javascript not works
body: <p>I'm try to use ASP.NET 4.0 WebForms Routing. Here is my RegisterRoutes function:</p>
  
  <pre><code> 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>For pages like <code>/catalog/group/{group}</code> everything is ok. But there are problems with pages <code>catalog/good/{good}</code>. </p>
  
  <p>First strange thing: when I open this page it calls twice. So I see what value comes for <code>Page.RouteData.Values["good"]</code>. First time in <code>Page.RouteData.Values["good"]</code> has the right value (my goodId) but the second time I got the string value "WebResource.axd"!</p>
  
  <p>So my highslide JavaScript does not work on the page. And when I click on highslide image the page reloads instead of executing the JavaScript.</p>
  
  <p>I added this line <code>routes.Ignore("{resource}.axd/{*pathInfo}");</code> but it didn't helped me. Any ideas?</p>