if you want all views to share the same script, use the main page with all the script functions and put a place in it:
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
And then each subview then links to the main page.
<%@ Page Title="" Language="C#" MasterPageFile="Site.Master" Inherits="OpenProjects.Web.Mvc.ApplicationView %> <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> </asp:Content>
For controllers, create your own application controller that inherits from the built-in MVC controller, and then get your controllers from inheritance instead, not just the controller
source share