title: JQuery object expected error when accessing page via url routing
body: <p>In my global.asax I have url routing setup like below:</p>
  
  <pre><code>routes.MapPageRoute("User Logon", "{Vendor}/Logon", "~/Logon.aspx");
  </code></pre>
  
  <p>In the logon.aspx page, I have a script that "stylizes" the logon button:</p>
  
  <pre><code>&lt;link href="jquery/css/flick/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="images/style.css" rel="stylesheet" type="text/css" /&gt;
  &lt;script src="jquery/js/jquery-1.4.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="jquery/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('#&lt;%= ButtonLogon.ClientID %&gt;').button();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>When I access the page us a url (in debug mode) <a href="http://localhost/logon.aspx?v=1" rel="nofollow noreferrer">http://localhost/logon.aspx?v=1</a> the page loads correctly and the jquery button command loads correctly.  But then I access the page using the new url route, I get this error.</p>
  
  <p>Microsoft JScript runtime error: Object expected</p>
  
  <p>Anyone have an idea why this occurs?</p>
  
  <p>Thanks.</p>