<?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>EvereQ &#187; ASP.NET MVC</title>
	<atom:link href="http://blog.evereq.com/blog/index.php/tag/asp-net-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.evereq.com/blog</link>
	<description>Everything reQuired</description>
	<lastBuildDate>Sun, 11 Jul 2010 08:35:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ASP.NET MVC Controller action being called twice issues</title>
		<link>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/</link>
		<comments>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 08:35:23 +0000</pubDate>
		<dc:creator>evereq</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[twice]]></category>
		<category><![CDATA[YSlow]]></category>

		<guid isPermaLink="false">http://blog.evereq.com/blog/?p=683</guid>
		<description><![CDATA[Your ASP.NET MVC controller action (same action) called multiply times?
Here is a main &#8220;check&#8221; list for you:

Check that you don&#8217;t have any image or another elements in View with empty src attribute (&#60;img src=&#8221;" /&#62; for example) or have src attribute referencing something that no longer existed. You better check directly in browser &#8220;Page Source&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>Your ASP.NET MVC controller action (same action) called multiply times?</p>
<p>Here is a main &#8220;check&#8221; list for you:</p>
<ul>
<li>Check that you don&#8217;t have any image or another elements in View with empty src attribute (&lt;img src=&#8221;" /&gt; for example) or have src attribute referencing something that no longer existed. You better check directly in browser &#8220;Page Source&#8221;, than in View itself due to possibility of some &#8220;dynamic&#8221; issues when View rendered. Ones you found such empty element in page html source its usually trivial to found same element in your view and fix issue.</li>
<li>Check that you don&#8217;t have any ajax calls referencing an empty URL (browsers will interpret such empty url as current page and request current page again make controller action execute few times)</li>
<li>You forgot to return &#8220;false&#8221; from JavaScript click event handler for link or button that makes AJAX call. If you forget &#8220;return false&#8221; browser simply made default action of the link &#8211; regular, non AJAX, call to same page)</li>
<li>Sometimes Firebug and YSlow Firefox (FF) plugins can cause such issues&#8230; Just temporary disable them in FF or check in different browser.</li>
</ul>
<p>Know another reason? Let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evereq.com/blog/index.php/2010/07/asp-net-mvc-controller-action-being-called-twice-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
