ASP.NET - What is the best way to keep jquery from cluttering up my ASPX files?
<p>I'm starting to use more and more jquery. I'm working with dialogs, and each dialog (including javascript) is taking upwards of 20-30 lines of code. There's a few pages where I'll have over 5 dialogs. This gets ugly fast. I haven't even begun to get into sliding interfaces or calendar controls yet. </p>

<p>I have more of a PHP background... and in these situations i'd be moving things to an "include" file. I can see that working for items such as jquery-dialogs in ASP.NET, but when I start adding jquery features to actual ASP.NET form items.. that won't be an option (as far as I know). </p>

<p>How can I keep the extra javascript and extra floating divs from cluttering up my ASPX files too bad?  </p>

<p>I'm prepared to partition the ASPX file into well documented, distinct sections... this just results in a very "tall" file. Any better solutions?</p>

<p>Thanks.</p>
