<?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>devermind.com &#187; ASP.NET</title>
	<atom:link href="http://devermind.com/category/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://devermind.com</link>
	<description>Adrian Grigore's software development weblog. Motto: I will not waste my time looking for a clever motto.</description>
	<lastBuildDate>Fri, 03 Sep 2010 13:25:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET MVC Tip #2: Turn on compile-time View Checking</title>
		<link>http://devermind.com/aspnet/aspnet-mvc-tip-turn-on-compile-time-view-checking/</link>
		<comments>http://devermind.com/aspnet/aspnet-mvc-tip-turn-on-compile-time-view-checking/#comments</comments>
		<pubDate>Sun, 03 May 2009 14:01:32 +0000</pubDate>
		<dc:creator>Adrian Grigore</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[MSBuild]]></category>

		<guid isPermaLink="false">http://devermind.com/?p=139</guid>
		<description><![CDATA[I like the compiler to catch as many errors as possible before I start debugging or release my application. This also applies to code nuggets in ASP.NET MVC views, especially since these are not unit-testable. This article shows how to enable compile-time View checking for ASP.NET MVC projects. ]]></description>
			<content:encoded><![CDATA[<p>I like the compiler to catch as many errors as possible before I start debugging or release my application. This also applies to code nuggets in ASP.NET MVC views, especially since these are not easily unit-testable. But views are not validated at compilation, at least not when using the standard settings for ASP.NET MVC projects.</p>
<p>Tools like Resharper can notify you of syntax errors within your views, but you can still build the project and not get a single error.  Instead, your application will crash when trying to evaluate the buggy view.</p>
<p>Fortunately you can easily make Visual Studio compile your views along with the rest of your code.<span id="more-139"></span> The only downside is that your project will build a bit slower, but if this bothers you during development you can also enable this feature on a per configuration basis.  For example you may want to compile your views in Release mode, but not in your Debug configuration , so you have the extra safety of compile-time view checking before releasing a new version, but you still get lightning-fast compilation times while developing.</p>
<p>Please proceed as follows to turn on compile time view compilation:</p>
<ol>
<li>Open your .csproject or .vbproject file in a text editor of your choice. It’s just a simple xml file, which is why any editor will do fine.</li>
<li>Locate the &lt;PropertyGroup&gt; element that belongs to the configuration you would like to alter.</li>
<li>Within this PropertyGroup, add an additional  element with “true” as its text value.</li>
</ol>
<p>For example, this will turn on view compilation in my project&#8217;s Release configuration:</p>
<pre class="brush: xml;">

&lt;PropertyGroup Condition=&quot; '$(Configuration)|$(Platform)' == 'Release|AnyCPU' &quot;&gt;

&lt;MvcBuildViews&gt;true&lt;/MvcBuildViews&gt;

...
</pre>
<p>That&#8217;s it! The next time one of your views has compile-time errors, these will be reported when building your application.</p>
<p>One last thing: You need to repeat this procedure for all configurations you might create in the future if you want your views to be checked in those configurations as well. Even if you tell Visual Studio to copy settings from an existing configuration where this tag is already set to true, the  MvcBuildViews tag is not copied by Visual Studio.</p>
<p><strong>Edit:</strong> As some readers pointed out, your project&#8217;s compilation time will increase after turning on view compilation. For this reason, I have recently switched it off for the debug configuration of my current project. However, compile-time view compilation is still tremendously useful before releasing a new version. Or perhaps even before submitting a new revision to your source control server. It can catch a lot of different errors this way, especially if you are using the new ASP.NET MVC <a href="http://weblogs.asp.net/scottgu/archive/2010/01/10/asp-net-mvc-2-strongly-typed-html-helpers.aspx">strongly typed Html helpers</a>. </p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fdevermind.com%2flinq%2faspnet-mvc-tip-turn-on-compile-time-view-checking"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fdevermind.com%2flinq%2faspnet-mvc-tip-turn-on-compile-time-view-checking" border="0" alt="kick it on DotNetKicks.com" /></a></p>
<div class="shoutIt"><a rev="vote-for" href="http://dotnetshoutout.com/Submit?url=http://devermind.com/linq/aspnet-mvc-tip-turn-on-compile-time-view-checking"><br />
<img style="border:0px" src="http://dotnetshoutout.com/image.axd?url=http://devermind.com/linq/aspnet-mvc-tip-turn-on-compile-time-view-checking" alt="Shout it" /><br />
</a></div>
]]></content:encoded>
			<wfw:commentRss>http://devermind.com/aspnet/aspnet-mvc-tip-turn-on-compile-time-view-checking/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>jQuery Selectmenu widget for jquery-ui 1.8</title>
		<link>http://devermind.com/aspnet/jquery-selectmenu-widget-for-jquery-ui-1-8/</link>
		<comments>http://devermind.com/aspnet/jquery-selectmenu-widget-for-jquery-ui-1-8/#comments</comments>
		<pubDate>Tue, 11 May 2010 09:17:14 +0000</pubDate>
		<dc:creator>Adrian Grigore</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://devermind.com/aspnet/jquery-selectmenu-widget-for-jquery-ui-1-8/</guid>
		<description><![CDATA[My current web project includes some &#60;select&#62; elements with &#60;group&#62; children to represent projects belonging to certain customers.
Unfortunately there is no way  to style native &#60;select&#62; elements uniformly across all browsers.
So I used the jQuery.Selectmenu plugin to style the &#60;select&#62; elements in a clean and consistent way:

Unfortunately the plugin does not seem to be maintained [...]]]></description>
			<content:encoded><![CDATA[<p>My current web project includes some &lt;select&gt; elements with &lt;group&gt; children to represent projects belonging to certain customers.</p>
<p>Unfortunately there is no way  to style native &lt;select&gt; elements uniformly across all browsers.</p>
<p>So I used the jQuery.Selectmenu plugin to style the &lt;select&gt; elements in a clean and consistent way:</p>
<p><a href="http://devermind.com/wp-content/uploads/2010/05/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" src="http://devermind.com/wp-content/uploads/2010/05/image_thumb1.png" border="0" alt="image" width="244" height="196" /></a></p>
<p>Unfortunately the plugin does not seem to be maintained by the jquery.ui group anymore. I made a few minor changes to the plugin so that it works with jquery.ui 1.8 and properly displays groups with space characters.</p>
<p>The plugin is no longer maintained on the jquery.ui wiki, so I am simply uploading my version here:</p>
<div id="scid:8eb9d37f-1541-4f29-b6f4-1eea890d4876:cb6fba35-b7c6-4468-906d-66d871482b97" class="wlWriterEditableSmartContent" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">
<div><a href="http://devermind.com/wp-content/uploads/2010/05/jqueryuiselectmenu3.zip" target="_self">jquery-ui-selectmenu.zip</a></div>
<div><strong>Edit : </strong><a title="Felix Nagel" href="http://www.felixnagel.com/blog/">Felix Nagel</a> has created a github branch for the plugin based on my version. He intends to keep maintaining the plugin, so for a more mature version visit his <a href="http://github.com/fnagel/jquery-ui/tree/selectmenu/">jquery-selectmenu github repository branch</a> and get the plugin from there.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://devermind.com/aspnet/jquery-selectmenu-widget-for-jquery-ui-1-8/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2008 randomly hangs when opening .aspx .ascx or .master files</title>
		<link>http://devermind.com/aspnet/visual-studio-2008-randomly-hangs-when-opening-aspx-ascx-or-master-files/</link>
		<comments>http://devermind.com/aspnet/visual-studio-2008-randomly-hangs-when-opening-aspx-ascx-or-master-files/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 13:12:27 +0000</pubDate>
		<dc:creator>Adrian Grigore</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[visual-studio asp.net]]></category>

		<guid isPermaLink="false">http://devermind.com/aspnet/visual-studio-2008-randomly-hangs-when-opening-aspx-ascx-or-master-files/</guid>
		<description><![CDATA[Visual Studio 2008 has been running quite smoothly on my computer until this week. But then it started randomly hanging when opening an .aspx .ascx .master file. The problem even occurred when opening the file in isolation, instead of opening the file as part of a solution. Deactivating all add-ins did not help. 
Fortunately It [...]]]></description>
			<content:encoded><![CDATA[<p>Visual Studio 2008 has been running quite smoothly on my computer until this week. But then it started randomly hanging when opening an .aspx .ascx .master file. The problem even occurred when opening the file in isolation, instead of opening the file as part of a solution. Deactivating all add-ins did not help. </p>
<p>Fortunately It seems I just found the solution: After uninstalling the &#8220;Microsoft Visual Studio Web authoring Component&#8221;, the problem seems have to have disappeared. I&#8217;m not even sure what this component does, but it seems to be a relict from Visual Studio 2005 and so far I have not noticed any missing features since I uninstalled it.</p>
]]></content:encoded>
			<wfw:commentRss>http://devermind.com/aspnet/visual-studio-2008-randomly-hangs-when-opening-aspx-ascx-or-master-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
