I just found out that I can get/set a default namespace in my web app by going to project > Properties > Application. Apparently this only applies to VB.Net, and not C#.Net, for some reason.
How do I find out what the default namespace is for the website I just created? The project properties look completely different.
The default namespace for your C# web app is just the name of your project.
It’s added to the code for you automatically. Also the file structure within your project will determine what the default namespace for that file. If you have a Views folder in your app you would get
namespace SampleNamespace.Viewsand it is recommended through a number of style enforcing tools that you mirror the file structure in your namespaces.Here’s an example from microsoft.