Good day,
I want to make a global variable of a string for the src location of my css files so that i don't have to type it out every time, and if I change the position of it then i just need to change it in one place and it will automatically be used in all the views.
How should I go about doing this?
I do not know where to declare such a variable? I can make a class called global variables. but then how do I make that class be automatically included in all my views?
/Views/Shared
folder for_Layout.cshtml
. You can add your css there once and should be available on other pages – codingbiz Jul 13 at 9:12