I have the following page:
Page.cshtml:
<some html>
@foreach (var item in Model.OffersOutstanding)
{
@Html.Partial("PartialOfferAccept", item.AcceptForm)
}
</some html>
<script>
// all js here
</script>
/* end of file */
and PartialView PartialOfferAccept.cshtml:
<some html>...</some html>
<script>
// script, specified for partial view
</script>
in result html it works, but mixed js and html. I want to put all partial view scripts to the end of page. It would be better to do with RenderAction, but RenderAction is allowed only for Layouts. Any way to separate partial view content and put to different places on page. PS. Ability to separate a partial view to 2 partial views don't offer :)