<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: best practices for developing ASP.Net controls with client scripting</title><link>http://forums.asp.net/thread/1427621.aspx</link><pubDate>Fri, 13 Oct 2006 06:26:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1427621</guid><dc:creator>Haissam</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1427621.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=1427621</wfw:commentRss><description>&lt;p&gt;Personally i use external files when i got a large number of javascript written in one webpage, in this way u can make reading and debugging ur code easier then putting them inline.&lt;/p&gt;&lt;p&gt;Happy coding&lt;/p&gt;</description></item><item><title>Re: best practices for developing ASP.Net controls with client scripting</title><link>http://forums.asp.net/thread/1418685.aspx</link><pubDate>Wed, 04 Oct 2006 22:10:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418685</guid><dc:creator>flanakin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418685.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=1418685</wfw:commentRss><description>&lt;p&gt;Personally, I see three options. In preferencial order, they are (a) a separate JS file; (b) a cache-enabled ASPX file; and, (c) inline scripting. Use a JS file in any case where your script is static. The reason behind this is that modern web browsers will cache these files and ensure your app performs as best as possible -- remember that JavaScript is parsed&amp;nbsp;when executed, so every little bit helps. If you require dynamic content, try putting the script in a separate&amp;nbsp;ASPX page that utilizes cache headers to maximize the cacheability. In the event that you have code that&amp;nbsp;is dependant upon server controls, use inline scripting. Even if you do&amp;nbsp;go this route, tho, I&amp;#39;d suggest calling functions that are specified in cache-controlled locations to minimize page&amp;nbsp;size and maximize performance.&lt;/p&gt;&lt;p&gt;On a side note, if you have no more than 5-10 lines of code, I wouldn&amp;#39;t worry about it. Just stick it on the page since that&amp;#39;s the simplest method. The real reasons to separate script into its own file is for performance and/or maintainability... well, and all the other *ilities, as well &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;</description></item><item><title>Re: best practices for developing ASP.Net controls with client scripting</title><link>http://forums.asp.net/thread/1418657.aspx</link><pubDate>Wed, 04 Oct 2006 21:16:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418657</guid><dc:creator>PeterBrunone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418657.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=1418657</wfw:commentRss><description>&lt;p&gt;It depends on how dynamic the script needs to be.&amp;nbsp; For example, with &lt;a href="http://easylistbox.com/home.aspx?rl=fp"&gt;EasyListBox&lt;/a&gt;, I do both; the bulk of the JS is in an external file, but functionality that changes with the page content is rendered inline with the web form.&lt;/p&gt;&lt;p&gt;Cheers,&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: best practices for developing ASP.Net controls with client scripting</title><link>http://forums.asp.net/thread/1418609.aspx</link><pubDate>Wed, 04 Oct 2006 20:31:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418609</guid><dc:creator>Javier Luna</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418609.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=1418609</wfw:commentRss><description>&lt;p&gt;Hi mark,&lt;/p&gt;&lt;p&gt;I use your second option. A script file that the page can refer it.&lt;/p&gt;&lt;p&gt;Good Coding!&lt;/p&gt;&lt;p&gt;Javier Luna &lt;br /&gt;&lt;a href="http://guydotnetxmlwebservices.blogspot.com/"&gt;http://guydotnetxmlwebservices.blogspot.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>best practices for developing ASP.Net controls with client scripting</title><link>http://forums.asp.net/thread/1418523.aspx</link><pubDate>Wed, 04 Oct 2006 19:27:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1418523</guid><dc:creator>markvw</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1418523.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=1418523</wfw:commentRss><description>&lt;p&gt;Hello. I was wondering if when developing custom controls in asp.net that need client script if it is better to emit the script inline with the code or to use a script file that the page can refer to. Any ideas would be much appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;</description></item></channel></rss>