<?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>Chris van de Steeg &#187; Uncategorized</title>
	<atom:link href="http://www.chrisvandesteeg.nl/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisvandesteeg.nl</link>
	<description>What&#039;s practical is logical</description>
	<lastBuildDate>Thu, 06 May 2010 07:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>jQuery for ASP.NET Mvc &#8211; part 2</title>
		<link>http://www.chrisvandesteeg.nl/2008/02/16/jquery-for-aspnet-mvc-part-2/</link>
		<comments>http://www.chrisvandesteeg.nl/2008/02/16/jquery-for-aspnet-mvc-part-2/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 20:35:59 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asp.net mvc]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://www.chrisvandesteeg.nl/2008/02/16/jquery-for-aspnet-mvc-part-2/</guid>
		<description><![CDATA[[go to downloads] A view days after I created my sample project that added some jQuery magic to the ASP.NET Mvc Framework, Aaron Lerch wrote an interesting article. He used a ViewFactory to do the json-serialization and added XML serialization as well. I liked this approach better then using masterpages. I took his code, altered [...]]]></description>
			<content:encoded><![CDATA[<p><a href="#downloads">[go to downloads]</a></p>
<p>A view days after I created my sample project that added some jQuery magic to the ASP.NET Mvc Framework, <a href="http://www.aaronlerch.com/">Aaron Lerch</a> wrote an <a href="http://www.aaronlerch.com/blog/2008/01/01/unifying-web-sites-and-web-services-with-the-aspnet-mvc-framework/">interesting article</a>.</p>
<p>He used a ViewFactory to do the json-serialization and added XML serialization as well. I liked this approach better then using masterpages. I took his code, altered some bits and created a library called jQueryMvc with it. This library also utilizes the <a href="http://www.codeplex.com/MVCContrib">MvcContrib</a> project. It&#8217;s now even easier to make your ASP.NET Mvc project ajax-enabled with jQuery, it just requires 4 steps:</p>
<ol>
<li>Add a reference to jQueryMvc.dll </li>
<li>Make your global.asax inherit from JqueryMvcApplication </li>
<li>Add &lt;%= Ajax.RegisterJqueryMvc(Page.ClientScript) %&gt; to the &lt;head&gt; section of your (master)pages. </li>
<li>Let your controllers inherit from BaseController </li>
</ol>
<p>That&#8217;s it, your all set. You should take a look at the SampleSite that&#8217;s included in the download on how to use the utility. Using it works almost the same as the previous version, so if you haven&#8217;t done so, you should read my <a href="http://www.chrisvandesteeg.nl/2007/12/19/ajax-and-json-for-aspnet-mvc-with-jquery/">previous article</a>. The only difference is the exception handling. Since I decided to embrace the MvcContrib project, the exception handling for ajax &amp; html requests have changed. Exceptions are now handled with a [Rescue] attribute. The BaseController has a default Rescue attribute attached which leads all exceptions to the &quot;error.aspx&quot; rescue handler. So your project should at least have /Views/Shared/Rescues/error.aspx that outputs the exceptions for your site. If you want to catch specific exception for yourself, you can add a rescue attribute to your site that catches that error type. E.g. if you want to catch a SecurityException, you could add<a href="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="44" alt="image" src="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image-thumb.png" width="509" border="0" /></a> </p>
<p>If an exception of type SecurityException is thrown during a controller action execution in your HomeController, MvcContrib will look for /Views/Home/Rescues/security.aspx and if that doesn&#8217;t exist, it will look for /Views/Shared/Rescues/security.aspx. The viewdata for those pages will be the exception itself. The rescue attribute can also be used on method level.</p>
<p>Another nice thing is that the MvcContrib is build to use Inversion of Control (IoC). <strong>BUT!</strong>: if you don&#8217;t want to do anything with IoC for now, you can leave it where it is! jQueryMvc just uses it for attaching the ViewFactory to your controllers, that&#8217;s all you need to know. You can also stop reading just here, the rest is about the dependency container that I used.</p>
<p>For jQueryMvc I choose the <a href="http://www.codeplex.com/ObjectBuilder">Microsoft Objectbuilder</a> framework for this, although, with MvcContrib, you&#8217;re free to choose an other framework. I choose the ObjectBuilder, since I&#8217;m the one that committed that to MvcContrib <img src='http://www.chrisvandesteeg.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In JqueryMvcApplication, when the application get&#8217;s initialized, we&#8217;re looking for all controllers in the currently running project. <a href="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image1.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="292" alt="image" src="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image-thumb1.png" width="756" border="0" /></a></p>
<p>All these controllers are registered with the Dependency container and our custom ViewFactory is also registered with this container. The ObjectBulderControllerFactory makes sure the controllers are fetched through that very container, and when that happens, the ViewFactory is attached to them.</p>
<p><a href="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image2.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="108" alt="image" src="http://www.chrisvandesteeg.nl/wp-content/uploads/2008/02/image-thumb2.png" width="723" border="0" /></a></p>
<p>There are also some&#160; nice helper functions in JqueryMvcApplication, for making the registration of your own services/helpers/etc into the container a breeze.</p>
<p>I&#8217;ll talk about using the container in some other article sometime.</p>
<p>For now, have fun with jQueryMvc.</p>
<p> <a name="downloads"></a>
<p><strong>Downloads</strong></p>
<ul>
<li><a href="http://code.google.com/p/jquerymvc/">Project at GoogleCode</a> </li>
<li><a href="/download/jquerymvc/jquerymvc2.zip">Download source, binaries &amp; sample project</a> </li>
<li><a href="/demo/jquerymvc2/">View online demo of the sample site</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2008/02/16/jquery-for-aspnet-mvc-part-2/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>New free Silk icons</title>
		<link>http://www.chrisvandesteeg.nl/2007/12/04/new-free-silk-icons/</link>
		<comments>http://www.chrisvandesteeg.nl/2007/12/04/new-free-silk-icons/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 16:15:33 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.chrisvandesteeg.nl/2007/12/04/new-free-silk-icons/</guid>
		<description><![CDATA[Everyone knows the fantastic free silk icon set of famfamfam ofcourse Damieng has created an extra set of 460+ icons in the same style]]></description>
			<content:encoded><![CDATA[<p>Everyone knows the fantastic <a href="http://www.famfamfam.com/">free silk icon</a> set of <a href="http://www.famfamfam.com/">famfamfam</a> ofcourse </p>
<p><a href="http://damieng.com/">Damieng</a> has created an extra set of <a href="http://damieng.com/creative/icons/silk-companion-1-icons">460+ icons</a> in the same style</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2007/12/04/new-free-silk-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install drupal on IIS repeats first page</title>
		<link>http://www.chrisvandesteeg.nl/2007/10/09/install-drupal-on-iis-repeats-first-page/</link>
		<comments>http://www.chrisvandesteeg.nl/2007/10/09/install-drupal-on-iis-repeats-first-page/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 18:30:09 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.ilikeu2.nl/2007/10/09/install-drupal-on-iis-repeats-first-page/</guid>
		<description><![CDATA[This is mainly just a post to remind myself , since I dive into the drupal installation code every time I try to set it up on an IIS server. I keep forgetting why it stalls at the first screen of the setup process. I fill in my db-settings, and then it just asks me [...]]]></description>
			<content:encoded><![CDATA[<p>This is mainly just a post to remind myself <img src='http://www.chrisvandesteeg.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , since I dive into the drupal installation code every time I try to set it up on an IIS server. I keep forgetting why it stalls at the first screen of the setup process. I fill in my db-settings, and then it just asks me to fill in those settings again.</p>
<p>I probably forget since it&#8217;s such a simple thing&#8230; just allow the IIS user to modify the file sites/default/settings.php<br />
That&#8217;s all&#8230; happy installing <img src='http://www.chrisvandesteeg.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2007/10/09/install-drupal-on-iis-repeats-first-page/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IIS7 HTTP Error 404.3 &#8211; Not Found for PHP, Cfm etc.</title>
		<link>http://www.chrisvandesteeg.nl/2007/01/12/iis7-http-error-4043-not-found-for-php-cfm-etc/</link>
		<comments>http://www.chrisvandesteeg.nl/2007/01/12/iis7-http-error-4043-not-found-for-php-cfm-etc/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 20:34:51 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.ilikeu2.nl/2007/01/12/iis7-http-error-4043-not-found-for-php-cfm-etc/</guid>
		<description><![CDATA[I&#8217;ve been trying to serve php pages on my IIS7 machine for some hours now, but could not get it to work. First it took me some time to figure out there is a extra option in &#8216;add/remove windows features&#8217; to seperately install ISAPI options in IIS, but that was not too hard too find [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to serve php pages on my IIS7 machine for some hours now, but could not get it to work.<br />
First it took me some time to figure out there is a extra option<br />
in &#8216;add/remove windows features&#8217; to seperately install ISAPI options in IIS, but that was not too hard too find out.</p>
<p>But after registering my php4isapi.dll , every time I requested a .php file I got the error:<br />
<code><br />
<strong>HTTP Error 404.3 - Not Found</strong><br />
Description: The page you are requesting cannot be served because of the Multipurpose Internet Mail Extensions (MIME) map policy that is configured on the Web server. The page you requested has a file name extension that is not recognized, and is not allowed. </p>
<p><strong>Error Code</strong>: 0x80070032 </p>
<p><strong>Notification</strong>: ExecuteRequestHandler </p>
<p><strong>Module</strong>: StaticFileModule </p>
<p><strong>Requested URL</strong>: http://localhost:80/test.php </p>
<p><strong>Physical Path</strong>: C:\inetpub\wwwroot\test.php </p>
<p><strong>Logon User</strong>: Anonymous </p>
<p><strong>Logon Method</strong>: Anonymous </p>
<p><strong>Handler</strong>: StaticFile<br />
</code></p>
<p>Wtf, StaticFileHandler? I&#8217;m sure I registered the .php extension to the php isapi dll.</p>
<p>After messing around in IIS for some time I found an option &#8216;Enable 32-Bit applications&#8217; in the &#8216;advanced settings&#8217; of an application pool.<br />
Setting this property to true made php execute just fine. Would be so much nicer if IIS7 could detect if I register an 32 bit ISAPI and would<br />
ask me if it should enable 32 bit applications automatically. </p>
<p>Being it a problem for 64bit users of Vista only, makes this issue kinda hard to find on the web. Guess there aren&#8217;t too many people<br />
with 64 bit vista to try out php hosting yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2007/01/12/iis7-http-error-4043-not-found-for-php-cfm-etc/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://www.chrisvandesteeg.nl/2006/09/15/14/</link>
		<comments>http://www.chrisvandesteeg.nl/2006/09/15/14/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 09:01:47 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.ilikeu2.nl/2006/09/15/14/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2006/09/15/14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://www.chrisvandesteeg.nl/2005/06/23/welcome/</link>
		<comments>http://www.chrisvandesteeg.nl/2005/06/23/welcome/#comments</comments>
		<pubDate>Thu, 23 Jun 2005 14:47:56 +0000</pubDate>
		<dc:creator>Chris van de Steeg</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.ilikeu2.nl/?p=2</guid>
		<description><![CDATA[So here it is! Welcome to LogicAlley: logically according to alley]]></description>
			<content:encoded><![CDATA[<p>So here it is! Welcome to <strong>LogicAlley: logically according to alley</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisvandesteeg.nl/2005/06/23/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
