title: Alternative for using $find and jquery selector in order to get object in ASP.net application
body: <p>I would like to call a method of an element which can be returned from the ASP.net Sys.Application method "$find". In this case it is a telerik RadWindow control (ID="MyWindow") and I would like to call the .show() method.</p>
  
  <p>The problem is to get the correct client id of the control <strong>in a separate JS file</strong>, since IDs gets modified in the ASP.net framework. For this I currently use</p>
  
  <pre><code>$find($("[ID$=MyWindow]")[0].id).show();
  </code></pre>
  
  <p>This works if there is only one element on the page which id ends with "MyWindow". Unfortunately the control sometimes adds some strange wrapper element to the page which id ends with "MyWindow", too.</p>
  
  <p>So my question: Is there a better way to get the ASP.net element object <strong>in a separate JS file</strong> besides this ugly combination of $find and jquery selection?</p>