title: Regarding loading of partial view in mvc
body: <p>i am new in mvc. now learning. i was searching various technique to load partial view in mvc and i got good one in stackoverflow. here it is.
  If you want to load the partial view directly inside the main view you could use the Html.Action helper:</p>
  
  <pre><code>@Html.Action("Load", "Home")
  </code></pre>
  
  <p>or if you don't want to go through the Load action use the HtmlPartial hepler:</p>
  
  <pre><code>@Html.Partial("_LoadView")
  
  If you want to use Ajax.ActionLink, replace your Html.ActionLink with:
  
  @Ajax.ActionLink(
      "load partial view", 
      "Load", 
      "Home", 
      new AjaxOptions { UpdateTargetId = "result" }
  )
  </code></pre>
  
  <p>and of course you need to include a holder in your page where the partial will be displayed:</p>
  
  <pre><code>&lt;div id="result"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Also don't forget to include:</p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>in your main view in order to enable Ajax.* helpers. And make sure that unobtrusive javascript is enabled in your web.config (it should be by default):</p>
  
  <pre><code>&lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
  </code></pre>
  
  <p>after going through the above code one confusion occur. help require. my confusion as below.</p>
  
  <pre><code>@Html.Action("Load", "Home")
  @Html.Partial("_LoadView")
  </code></pre>
  
  <p>i know the use of <code>@Html.Partial("_LoadView")</code> but do not understand how @Html.Action("Load", "Home") will work ?</p>
  
  <p>can anyone show me couple of example to show the various usage of </p>
  
  <pre><code>@Html.Action("Load", "Home")
  </code></pre>
  
  <p>and how it is different from <code>@Html.Partial("_LoadView")</code></p>
  
  <p>thanks</p>