<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>fordie's Blog &#187; .net</title>
	<atom:link href="http://fordie.co.uk/category/technical/web-development/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://fordie.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 10 May 2011 17:58:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>jQuery intellisense in Visual Studio 2008 &amp; Dreamweaver</title>
		<link>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/</link>
		<comments>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:00:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[code hints]]></category>
		<category><![CDATA[intellisense]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/?p=136</guid>
		<description><![CDATA[jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML it&#8217;s my weapon of choice when it comes to adding client side interactions to a site. It has rapidly gained popularity with web developers and designers &#8211; now software manufacturers are starting to take note with industry leaders like Adobe &#38; Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquery.com/">jQuery</a> is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML it&#8217;s my weapon of choice when it comes to adding client side interactions to a site.</p>
<p>It has rapidly gained popularity with web developers and designers &#8211; now software manufacturers are starting to take note with industry leaders like Adobe &amp; Microsoft adding tools to their web development environments to help make jQuery development even quicker.</p>
<h2>Microsoft Visual Studio 2008</h2>
<p>I spoke previously about getting <a href="/index.php/2008/03/18/jquery-intellisense-in-visual-studio-2008/">Jquery intellisense in Visual Studio</a> 2008. Since then Scott Guthrie announced that <a href="http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx"><q>that Microsoft will be shipping jQuery with Visual Studio going forward</q></a> and then just yesterday I spotted <a href="http://blogs.msdn.com/webdevtools/archive/2008/10/28/rich-intellisense-for-jquery.aspx">this article</a> on the Visual Web Developer Team Blog with interesting updates to VS2008&#8242;s jQuery intellisense. The best development from my point of view is the ability to get code hints in your aspx &amp; master pages, not just your .js files.</p>
<p>In order to take advantage of these improvements you&#8217;ll first need to install <a href="http://msdn.microsoft.com/en-gb/vstudio/cc533448.aspx">Visual Studio 2008 Service Pack 1</a>and this <a href="http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736">hot fix</a>.</p>
<p>Next download the <a href="http://code.jquery.com/jquery-1.2.6-vsdoc.js">jQuery IntelliSense documentation file</a> and save it in to your website in (probably a good idea to put it in the same folder as your jQuery file).</p>
<p>To add jQuery intellisense to a javascript file simply add this line to the top of the file:</p>
<pre name="code" class="xhtml:firstline[1]">
  /// &lt;reference path="jquery-1.2.6-vsdoc.js"/&gt;
</pre>
<p>To add it to aspx &amp; master pages do add the following lines to the head of your document.</p>
<pre name="code" class="xhtml:firstline[1]">
    &lt;% if (false)
       { %&gt;
        &lt;script src="~/[PATH_TO_REFERENCE_FILE]/jquery-1.2.6-vsdoc.js" type="text/javascript"&gt;
        &lt;/script&gt;
    &lt;%} %&gt;
</pre>
<h3>Points to note:</h3>
<ul>
<li>The &#8220;if (false)&#8221; statement will prevent the link to the reference file being rendered at runtime.  Microsoft are planning to release a hotfix to automatically search for the vsdoc file if the javascript file has a reference path in it meaning that these links in the head will become redundant.</li>
<li>If you are using aspnet&#8217;s MVC framework you need to ensure that your path to the reference file starts with a tilde otherwise VS will not find the reference file.</li>
<li>dding a link to the reference to a master page means all aspx pages that inherit that master page will have intellisense enabled.</li>
</ul>
<h2>Adobe Dreamweaver</h2>
<h3>CS4</h3>
<p>Adobe have just released <a href="http://www.adobe.com/products/dreamweaver/">Dreamweaver CS4</a> which also has support for jQuery code hinting. Adobe have taken a different approach to Microsoft, they use &#8220;introspection&#8221; to parse any javaScript files you have linked to your page and provide code hints.</p>
<p>This seems to work pretty well, and even handles chaining. However, I do have a couple of minor gripes. Firstly as soon as I typed &#8220;$(&#8221; dreamweaver told me I had a syntax error which really confused me, in the end I realised that just had to keep typing and DW would eventually figure out what I was doing. The other thing is, as a VS user I&#8217;m used to to code hits appearing strait away, in DW you have to press Ctrl + [space]. It&#8217;s not a big deal but would take some getting used to.</p>
<h3>Older Vesions</h3>
<p>Users of older versions of Dreamweaver <a href="http://xtnd.us/dreamweaver/jquery">this extension</a> from Chris Charlton adds excellent code hints for jQuery &amp;<a href="http://ui.jquery.com/"> jQuery UI</a> and what&#8217;s more it prompts you as soon as you hit &#8220;.&#8221; good work Chris!</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2008/11/13/jquery-intellisense-in-visual-studio-2008-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Intellisense in Visual Studio 2008</title>
		<link>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/</link>
		<comments>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 17:16:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[intellisense]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2008/03/18/jquery-intellisense-in-visual-studio-2008/</guid>
		<description><![CDATA[We&#8217;ve started using jQuery quite heavily to power our javascript widgets &#8211; without exception everyone who&#8217;s used it here has had their own little jQuery epiphany. It&#8217;s quite funny to watch, people tend to resist it to start with (particularly the hardcore coders) &#8211; but when they use it for a while and see how [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/images/blog/intel.jpg" alt="intellisense in action" style="margin: 0pt 0.5em 0.5em 0pt; float: left" height="207" width="300" />We&#8217;ve started using <a href="http://jquery.com/">jQuery</a> quite heavily to power our javascript widgets &#8211; without exception everyone who&#8217;s used it here has had their own little jQuery epiphany. It&#8217;s quite funny to watch, people tend to resist it to start with (particularly the hardcore coders) &#8211; but when they use it for a while and see how much pain it can save you they soon come round.</p>
<p>One thing that was missing until now though was a way of getting jQuery intellisense in VS2008.  <a href="http://icanhaz.com/intellisense">Yesterday I spotted this article by  James Hart</a> which describes how this missing functionality can be be added. You need to make sure that you have this <a href="http://tinyurl.com/38vn68">Visual Studio 2008 Hotfix</a> installed then follow the instructions in James&#8217; article and as if by magic you&#8217;ll have intellisense for your jQuery code! This has gone down a treat here and looks set to make life an awful lot easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2008/03/18/jquery-intellisense-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a sticky footer in ASP.net pages</title>
		<link>http://fordie.co.uk/2007/10/25/how-to-create-a-sticky-footer-in-aspnet-pages/</link>
		<comments>http://fordie.co.uk/2007/10/25/how-to-create-a-sticky-footer-in-aspnet-pages/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 16:29:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2007/10/25/how-to-create-a-sticky-footer-in-aspnet-pages/</guid>
		<description><![CDATA[When we were developing the Tesco Property Market website there was a requirement to be position the footer either at the bottom of the browser window or at the end of the content if it was over one screen high. On the original site I wasn&#8217;t able to acheive this, due to the way some [...]]]></description>
			<content:encoded><![CDATA[<p>When we were developing the Tesco Property Market website there was a requirement to be position the footer either at the bottom of the browser window or at the end of the content if it was over one screen high. On the original site I wasn&#8217;t able to acheive this, due to the way some of the web controls had been coded the side bars had to be absolutely positioned  and were often taller than the main content.</p>
<p>With the recent redesign I completely scrapped the existing templates and started again doing away with the absolute positioning. However, none of the techniques I&#8217;d used in the past for footer positioning worked and for the life of me I couldn&#8217;t work out why.</p>
<p>Eventually the answer dawned on me; the form element that .net annoyingly insists on wrapping everything in was not being targeted by the CSS. Once I&#8217;d realised that it was fairly straightforward to get the footer working. Here&#8217;s how I did it:</p>
<h2>The basic xhtml structure for your page should look like this</h2>
<pre name="code" class="xhtml">

&lt;body&gt;
&lt;!-- Stupid form required by .net --&gt;
&lt;form id="form1" runat="server"&gt;
&lt;div id="container"&gt;
&lt;div id="contents"&gt;
&lt;!-- Everything apart from the footer goes in here--&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="site-info"&gt;
&lt;!-- footer stuff--&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;</pre>
<h2>And here&#8217;s the CSS to work the magic</h2>
<pre name="code" class="css">
html, body, #aspnetForm
{
	height:100%;
	/* without this the footer stays at the end of the content
           - not the botom of the viewport */
}
#container
{
	margin:auto;
	min-height:100%;
	width:980px;
	/* #container is at least the height of the veiwport and contains
            everything except the footer*/
}
#contents
{
	padding-bottom:3em;
	/* #contents contains everything excepte the footer and adds padding at least equivalent to the height of the footer beneath the content*/

}
#site-info
{	height:3em;
	margin :-3em auto 0 auto;
	width:980px;
	/* #site-info (the footer) contains the supplimenatry navigation and copyright info.
	   It's height and negative top margin should be the same as the bottom padding in #contents   */
}</pre>
<p>This technique was based on <a href="http://www.themaninblue.com/writing/perspective/2005/08/29/">Cameron Adams&#8217; &#8220;footerStickAlt&#8221;.</a></p>
<p style="text-align: right; font-size: 8px">Blogged with <a href="http://www.flock.com/blogged-with-flock" title="Flock" target="_new">Flock</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2007/10/25/how-to-create-a-sticky-footer-in-aspnet-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip for using XHTML Strict with ASP.net</title>
		<link>http://fordie.co.uk/2007/10/25/quick-tip-for-using-xhtml-strict-with-aspnet/</link>
		<comments>http://fordie.co.uk/2007/10/25/quick-tip-for-using-xhtml-strict-with-aspnet/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 12:14:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://fordie.co.uk/index.php/2007/10/25/quick-tip-for-using-xhtml-strict-with-aspnet/</guid>
		<description><![CDATA[One thing that has always infuriated me with .net is it&#8217;s insistence on adding an invalid name attribute to the asp.net form*. About a month ago I found a nice easy cure for this, so I thought I&#8217;d share it. All you need to do to stop .net adding the name attribute to the form [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that has always infuriated me with .net is it&#8217;s insistence on adding an invalid name attribute to the asp.net form*.</p>
<p>About a month ago I found a nice easy cure for this, so I thought I&#8217;d share it. All you need to do to stop .net adding the name attribute to the form is add an xhtmlConformance tag to your web.config like so:</p>
<pre name="code" class="xml">
&lt;configuration&gt;
&lt;system.web&gt;
&lt;xhtmlConformance mode="Strict" /&gt;
&lt;/system.web&gt;
&lt;/configuration&gt;
</pre>
<p>Hopefully that&#8217;ll be of some use to someone.</p>
<p><span class="aside">*What annoys me more is the fact you have to have a form tag on every page for .net to work, but that&#8217;s a rant for another day.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fordie.co.uk/2007/10/25/quick-tip-for-using-xhtml-strict-with-aspnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

