title: mvc 4 - Jquery mobile - @section scripts not working after navigation
body: <p>I'm newbie to mvc 4 and jquery mobile and what i'm trying to do is display a map using jquery-ui-map library.</p>
  
  <p>Here is what I've:</p>
  
  <p>1) On the layout page I've the following code at the bottom before "end of body" tag</p>
  
  <pre><code>@Scripts.Render("~/bundles/jquery","~/bundles/jqueryui")
  @Scripts.Render("~/bundles/jquerymobile")
  @RenderSection("scripts", required: false)
  </code></pre>
  
  <p>2) On the Index View I've the following Actionlink</p>
  
  <pre><code>@Html.ActionLink("Display Map","Map", "Home", null, 
          new { data_role = "button", data_theme = "b", data_mini = "true" })
  </code></pre>
  
  <p>When I click on the above action link, It will take the user location and 'll display the marker on a google map.</p>
  
  <p>On the MAP view page I've the following code at the bottom</p>
  
  <pre><code>@section scripts{
  
       &lt;script type="text/javascript" src="http://maps.google.com/maps/apis?sensor=false"&gt;
       &lt;/script&gt;
      &lt;script type="text/javascript" src="@Url.Content("~/Scripts/map/demo.js")"&gt;&lt;/script&gt;
      @Scripts.Render("~/Scripts/map/jquery.ui.map.min.js")
      @Scripts.Render("~/Scripts/map/jquery.ui.map.overlays.min.js")
      @Scripts.Render("~/Scripts/map/jquery.ui.map.extensions.js")
      $(function () {
              //code to display the map
          });
   } 
  </code></pre>
  
  <p>Here is the issue I'm having.... When I click on the action link it will display the Map View but no map is displayed. </p>
  
  <p>If I refresh the page (f5 or click on browser refresh icon), it will call the <code>$function()</code> and the map is displayed.</p>
  
  <ol>
  <li>Am I doing something wrong with <code>@section</code> tag?</li>
  <li>How do I force the page to reload it.. I've tried do <code>Ajax.Actionlink</code>,  or set <code>cacheduration</code> to zero in Controller Action method, still no go.</li>
  </ol>
  
  <p>I've tried all the available questions and answers in this forum and still I didn't get it to work. </p>
  
  <p>Any idea why this is happening?</p>