I have added the following script to my _Layout.cshtml shared master view:
<script src="@Url.Script("~/Scripts/PromptToSave.js")" type="text/javascript"></script>
Is there a way to include this script in a Details or index page that does not use a layout?