How do I access a key value from web.config in my Razor view.
This is in my web.config in the Web Project root level.
web.config
The preferred method is actually:
@System.Web.Configuration.WebConfigurationManager.AppSettings["myKey"]
It also doesn't need a reference to the ConfigurationManager assembly, it's already in System.Web.