Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to Create base controller in .net core mvc to change the layout.chtml content using base controller any idea?

What I have tried:

public class BaseController : Controller
{

}

public class TripController : BaseController
{

}
Posted
Updated 7-Apr-20 4:38am

1 solution

This article may help you, looks like VB but is easily trans-coded:

Implementing Default Behavior in an ASP.NET MVC Controller -- Visual Studio Magazine[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900