I have a Webforms site that is deployed in test, staging and production.
Some internal users are having difficulty keeping track of which site they are.
I have a master page and common header/footers for every page.
How would I make text like “TEST” or “STAGING” appear on the pages in those environments, but still be able to deploy the same code base to production?
Use Request.ServerVariables(“SERVER_NAME”) and just create some if logic that changes your page title (or whatever indicator you want to use) to say dev or test ( i usually leave prod just blank)