<?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>JSEDLAK &#187; ASP.NET MVC</title>
	<atom:link href="http://jsedlak.org/tag/aspnet-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://jsedlak.org</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 00:44:02 +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>Cache Problems with ASP.NET MVC Views?</title>
		<link>http://jsedlak.org/2010/04/27/cache-problems-with-asp-net-mvc-views/</link>
		<comments>http://jsedlak.org/2010/04/27/cache-problems-with-asp-net-mvc-views/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:51:10 +0000</pubDate>
		<dc:creator>John Sedlak</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[ASP.NET MVC2]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">http://jsedlak.org/?p=636</guid>
		<description><![CDATA[If you have done any decent amount of work with the ASP.NET MVC platform, you have probably run into the following problem. You have a page where you want to update data on the server without a postback and so you whip out some fancy Javascript to send a request to the server. What happens [...]]]></description>
			<content:encoded><![CDATA[<p>If you have done any decent amount of work with the ASP.NET MVC platform, you have probably run into the following problem. You have a page where you want to update data on the server without a postback and so you whip out some fancy Javascript to send a request to the server. What happens is the response you get back is a success, and the data is updated, but subsequent requests don&#8217;t seem to be updated. This is most noticeable with partial views and content views called via the infamous &#8220;$.ajax&#8221; call. What you forgot was to make sure the browser isn&#8217;t caching the result:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p636code2'); return false;">View Code</a> CHSARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6362"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p636code2"><pre class="chsarp" style="font-family:monospace;">HttpContext.Response.AddHeader(&quot;cache-control&quot;, &quot;no-cache&quot;);</pre></td></tr></table></div>

<p>Note that if you have already hit the particular view and it is cached, you can generally clear the cache by navigating to the URI of the view manually and hitting refresh.</p>
]]></content:encoded>
			<wfw:commentRss>http://jsedlak.org/2010/04/27/cache-problems-with-asp-net-mvc-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linking To CSS Files In MasterPages</title>
		<link>http://jsedlak.org/2010/01/22/linking-to-css-files-in-masterpages/</link>
		<comments>http://jsedlak.org/2010/01/22/linking-to-css-files-in-masterpages/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 18:45:44 +0000</pubDate>
		<dc:creator>John Sedlak</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jsedlak.org/?p=562</guid>
		<description><![CDATA[A common problem for beginning ASP.NET developers is relative linking to CSS files in a MasterPage file. As it turns out, this is incredibly easy as shown below. Even better is that it works in ASP.NET MVC! ?View Code HTML1 &#60;link rel=&#34;Stylesheet&#34; href=&#34;&#60;%= ResolveUrl(&#34;css/Master.css&#34;) %&#62;&#34; type=&#34;text/css&#34; media=&#34;screen&#34; /&#62;]]></description>
			<content:encoded><![CDATA[<p>A common problem for beginning ASP.NET developers is relative linking to CSS files in a MasterPage file. As it turns out, this is incredibly easy as shown below. Even better is that it works in ASP.NET MVC!</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p562code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5624"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p562code4"><pre class="html" style="font-family:monospace;">&lt;link rel=&quot;Stylesheet&quot; href=&quot;&lt;%= ResolveUrl(&quot;css/Master.css&quot;) %&gt;&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://jsedlak.org/2010/01/22/linking-to-css-files-in-masterpages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imploding Versus Exploding Installations</title>
		<link>http://jsedlak.org/2009/04/19/imploding-versus-exploding-installations/</link>
		<comments>http://jsedlak.org/2009/04/19/imploding-versus-exploding-installations/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 01:15:11 +0000</pubDate>
		<dc:creator>John Sedlak</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[FGF]]></category>
		<category><![CDATA[Web CMS]]></category>

		<guid isPermaLink="false">http://jsedlak.com/?p=178</guid>
		<description><![CDATA[One of the major design decisions for Vodka 2.0 has been how to handle the installation of all the software necessary to run a site. At first I favored a desktop application based install since it would allow me to write in normal .NET code without any problems or hurdles that the web presents. The [...]]]></description>
			<content:encoded><![CDATA[<p>One of the major design decisions for Vodka 2.0 has been how to handle the installation of all the software necessary to run a site. At first I favored a desktop application based install since it would allow me to write in normal .NET code without any problems or hurdles that the web presents. The problem with this idea is that a desktop based install isn&#8217;t feasible for most people, certainly not for those on shared hosting.</p>
<p>A client application based installation is what I call an <b>Exploding Installation</b> because it takes a package and pushes files out of it onto the file system. Thus it is exploding itself onto the computer. This works really well for most cases, especially basic software installs like games, office applications, et cetera.</p>
<p>Where such an explosion doesn&#8217;t work well is for web based installations, which is where Vodka 2.0 is headed (see screenshot below). This is due to the fact that in most cases the average user isn&#8217;t able to set up the server in a way to make it work, or doesn&#8217;t want to. Originally the installation procedure was going to be based on an explosion: the user would upload the files, put in the site information (see screenshot below) and then the installation would unpackage the files necessary to run the site based on the information. This would work very well, except it leaves the original install files at the root directory of the server. Instead of this approach, an <b>Imploding Installation</b> does the trick because it not only erases over the install files themselves (big security bonus), it doesn&#8217;t require any work to setup. The goal here is to have the user upload the files, run the install and get to work creating content.</p>
<div style="text-align:center;"><a href="http://focusedgames.com/images/screenshots/vodka/vodka_001.png"><img src="http://focusedgames.com/images/screenshots/vodka/vodka_001_m.png" alt="Vodka 2.0 Install"/></a></div>
<p>So how is this done? To support an implosion of the software, or rather a rewrite of key points of it the software needs to be modular in such a way that programmatic writes can be done over content areas. In the case of the Vodka install the site&#8217;s navigation needs to be rewritten and because it is based on <a href="http://asp.net/mvc">ASP.NET MVC</a> has to handle the shutdown and/or removal of the installation controller and views. Right now this is done by removing a simple text file from the server, although in the future it can be done by changing a portion of the web.config file and/or removing an extra &#8220;Install&#8221; library from the bin directory.</p>
<p>The best part about the implosion is that it is 100% clean. After an installation is completed, there is no evidence left that it ever took place, and no possible way for a user to rerun the installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://jsedlak.org/2009/04/19/imploding-versus-exploding-installations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
