<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Tags/Routevaluedictionary on Emad Alashi</title>
    <link>https://emadashi.com/tags/routevaluedictionary/</link>
    <description>Recent content in Tags/Routevaluedictionary on Emad Alashi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 23 Mar 2012 15:30:48 +0000</lastBuildDate>
    <atom:link href="https://emadashi.com/tags/routevaluedictionary/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How Html.Action() Work</title>
      <link>https://emadashi.com/2012/03/how-html-action-work/</link>
      <pubDate>Fri, 23 Mar 2012 15:30:48 +0000</pubDate>
      <guid>https://emadashi.com/2012/03/how-html-action-work/</guid>
      <description>&lt;p&gt;Let’s take the example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-razor&#34; data-lang=&#34;razor&#34;&gt;@Html.Action(&amp;#34;Latest&amp;#34;, &amp;#34;Episode&amp;#34;)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;What this will do is to invoke the “&lt;em&gt;Latest&lt;/em&gt;” action method in the “&lt;em&gt;Episode&lt;/em&gt;” controller. But what really happens behind the scenes is NOT a direct invoke; it will actually start from the beginning of the ASP.NET MVC execution pipeline using “&lt;em&gt;Latest&lt;/em&gt;” and “&lt;em&gt;Episode&lt;/em&gt;” as Route values for the keys “&lt;em&gt;action&lt;/em&gt;” and “&lt;em&gt;controller&lt;/em&gt;” respectively.&lt;/p&gt;
&lt;p&gt;This means that you should pay very good attention to your Routes definition in the Application_Start() in Global.asax; Html.Action() will try to match the best route in your defined routes according to the RouteValueDictionary created above (action and controller) along with any additional route values provided in the overload.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
