title: call Action twice in same view
body: <p><a href="https://i.stack.imgur.com/W7ET4.png" rel="nofollow noreferrer">enter image description here</a>Hi I have an action that returns partial view I want to call it partial twice from view after once inside a modal and once outside the modal to fit the site to mobile. I use @html.action what actually happens is that there are events on click in partial and the js always listens only to the first and the one I put second inside a modal for example does not work. If I change their order on the page it will be reversed. Looking for a solution how to call that partial.</p>
  <p>my code:</p>
     
          @Html.ActionLink("Search", "Cars")
          
      
      
          
  <pre><code>    &lt;div class=&quot;modal fade carDetielsModal&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-labelledby=&quot;mySmallModalLabel&quot; aria-hidden=&quot;true&quot;&gt;
          &lt;div class=&quot;modal-dialog modal-sm&quot;&gt;
              &lt;div class=&quot;modal-header&quot;&gt;
                  &lt;button class=&quot;close&quot; aria-label=&quot;Close&quot; data-dismiss=&quot;modal&quot;&gt;
                      @*&lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;*@
  
                      &lt;img src=&quot;~/images/icon_X (1).png&quot; /&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
              &lt;div class=&quot;modal-content&quot;&gt;
                  @Html.Action(&quot;Search&quot;, &quot;Cars&quot;)
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
     
          @Html.ActionLink("Search", "Cars")